Mercurial > gftp.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
200:27ae88b5a55e | 201:0098dae654a5 |
---|---|
64 if (request->protocol_data) | 64 if (request->protocol_data) |
65 g_free (request->protocol_data); | 65 g_free (request->protocol_data); |
66 | 66 |
67 if (request->local_options_vars != NULL) | 67 if (request->local_options_vars != NULL) |
68 { | 68 { |
69 g_free (request->local_options_vars); | 69 gftp_config_free_options (request->local_options_vars, |
70 g_hash_table_destroy (request->local_options_hash); | 70 request->local_options_hash, |
71 request->num_local_options_vars); | |
71 } | 72 } |
72 | 73 |
73 memset (request, 0, sizeof (*request)); | 74 memset (request, 0, sizeof (*request)); |
74 | 75 |
75 if (free_request) | 76 if (free_request) |
405 { | 406 { |
406 request->iconv_initialized = 1; | 407 request->iconv_initialized = 1; |
407 break; | 408 break; |
408 } | 409 } |
409 | 410 |
410 /* FIXME - fix NUL character in remote_charsets */ | 411 /* FIXME 2.0.15 - fix NUL character in remote_charsets */ |
411 } | 412 } |
412 | 413 |
413 return (ret); | 414 return (ret); |
414 } | 415 } |
415 #endif | 416 #endif |
1941 } | 1942 } |
1942 printf ("--END OF FILE LISTING--\n"); | 1943 printf ("--END OF FILE LISTING--\n"); |
1943 } | 1944 } |
1944 | 1945 |
1945 | 1946 |
1946 static void | 1947 void |
1947 gftp_free_getline_buffer (gftp_getline_buffer ** rbuf) | 1948 gftp_free_getline_buffer (gftp_getline_buffer ** rbuf) |
1948 { | 1949 { |
1949 g_free ((*rbuf)->buffer); | 1950 g_free ((*rbuf)->buffer); |
1950 g_free (*rbuf); | 1951 g_free (*rbuf); |
1951 *rbuf = NULL; | 1952 *rbuf = NULL; |