diff lib/protocols.c @ 201:0098dae654a5

2003-6-25 Brian Masney <masneyb@gftp.org> * configure.in - added mk to ALL_LINGUAS * lib/gftp.h - added several macros for dmalloc * lib/misc.c src/text/gftp-text.c src/gtk/gftp-gtk.c - added gftp_shutdown() to misc.c. This will write out the configuration file, clear the cache, and if dmalloc is enabled, free the memory that was allocated on startup * lib/config_file.c lib/gftp.h lib/misc.c lib/options.h - added gftp_configuration_changed parameter * lib/config_file.c lib/misc.c lib/protocols.c - added gftp_config_free_options() * lib/config_file.c src/gtk/bookmarks.c - added gftp_bookmarks() which is derived mostly from bm_close_dialog() * lib/rfc959.c - added rfc959_request_destroy(). Free the getline buffers in this function * src/gtk/misc-gtk.c (gftp_item_factory_translate) - remove double g_strdup() call * lib/config_file.c lib/gftp.h src/gtk/misc-gtk.c - moved get_xpm_path() to GTK+ port. No longer call it startup when reading the config file
author masneyb
date Thu, 26 Jun 2003 01:04:12 +0000
parents 75eebb3b0592
children cf4098008615
line wrap: on
line diff
--- a/lib/protocols.c	Wed Jun 25 10:57:06 2003 +0000
+++ b/lib/protocols.c	Thu Jun 26 01:04:12 2003 +0000
@@ -66,8 +66,9 @@
 
   if (request->local_options_vars != NULL)
     {
-      g_free (request->local_options_vars);
-      g_hash_table_destroy (request->local_options_hash);
+      gftp_config_free_options (request->local_options_vars,
+                                request->local_options_hash,
+                                request->num_local_options_vars);
     }
 
   memset (request, 0, sizeof (*request));
@@ -407,7 +408,7 @@
           break;
         }
 
-      /* FIXME - fix NUL character in remote_charsets */
+      /* FIXME 2.0.15 - fix NUL character in remote_charsets */
     }
 
   return (ret);
@@ -1943,7 +1944,7 @@
 }
 
 
-static void
+void
 gftp_free_getline_buffer (gftp_getline_buffer ** rbuf)
 {
   g_free ((*rbuf)->buffer);