dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / MailRetrievalOptions.C
index 41b881e5e909246ab892f19e706def8e498cf1a1..06f9d21fb4a17abea74d7c5c45cfeaa3511b30c5 100644 (file)
@@ -16,7 +16,7 @@
  * details.
  *
  * You should have received a copy of the GNU Lesser General Public
- * License along with these librararies and programs; if not, write
+ * License along with these libraries and programs; if not, write
  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
  * Floor, Boston, MA 02110-1301 USA
  */
@@ -130,6 +130,33 @@ MailRetrievalOptions::MailRetrievalOptions (
     XmString           xms;
     char               *propkey = new char[MAXPATHLEN];
 
+    _password_pui = NULL;
+    _inboxpath_label = NULL;
+    _inboxpath_tf = NULL;
+    _checkfornewmail_label = NULL;
+    _checkfornewmail_sb = NULL;
+    _system_tb = NULL;
+    _server_frame = NULL;
+    _server_tb = NULL;
+    _serverframe_form = NULL;
+    _serverprotocol_label = NULL;
+    _serverprotocol_iom = NULL;
+    _servername_label = NULL;
+    _servername_tf = NULL;
+    _username_label = NULL;
+    _username_tf = NULL;
+    _password_label = NULL;
+    _password_tf = NULL;
+    _rememberpassword_tb = NULL;
+    _removeafterdelivery_tb = NULL;
+    _retrieveold_tb = NULL;
+    _custom_frame = NULL;
+    _custom_tb = NULL;
+    _customframe_form = NULL;
+    _customcommand_label = NULL;
+    _customcommand_tf = NULL;
+    
+
     _propui_array = new DtVirtArray<PropUiItem *>(10);
     _propui_array_iterator = 0;
     _parent = parent;
@@ -822,7 +849,7 @@ MailRetrievalOptions::isValidInboxPath(PropUiItem* pui, void* data)
       errmsg = NULL;
 
     if (inbox_path) free(inbox_path);
-    if (expanded_path) free(expanded_path);
+    free(expanded_path);
     return (char*) errmsg;
 }