dthelp: Change to ANSI function definitions
[oweals/cde.git] / cde / programs / dtmail / dtmail / MailRetrievalOptions.C
index a3b928b8f2ae6cebae83bd165d54681fe5c93771..06f9d21fb4a17abea74d7c5c45cfeaa3511b30c5 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * 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
+ */
 /* $TOG: MailRetrievalOptions.C /main/8 1998/07/23 18:13:00 mgreess $ */
 
 /*
@@ -108,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;
@@ -800,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;
 }