Mercurial > audlegacy
changeset 1752:be1c5774f675 trunk
[svn] - fix a memory leak in util_run_filebrowser()
author | nenolod |
---|---|
date | Wed, 20 Sep 2006 01:13:06 -0700 |
parents | a5fcf96e33fe |
children | 01df1ea5feae |
files | ChangeLog audacious/util.c |
diffstat | 2 files changed, 18 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Wed Sep 20 01:08:15 2006 -0700 +++ b/ChangeLog Wed Sep 20 01:13:06 2006 -0700 @@ -1,3 +1,13 @@ +2006-09-20 08:08:15 +0000 William Pitcock <nenolod@nenolod.net> + revision [2439] + - properly free the path to skin.hints once we locate it + - properly free a temporary variable (read_ini_string()) + + + Changes: Modified: + +3 -0 trunk/audacious/widgets/skin.c + + 2006-09-20 02:20:09 +0000 Yoshiki Yazawa <yaz@cc.rim.or.jp> revision [2437] - avoid conflict of mkdtemp() declaration between util.h and stdlib.h.
--- a/audacious/util.c Wed Sep 20 01:08:15 2006 -0700 +++ b/audacious/util.c Wed Sep 20 01:13:06 2006 -0700 @@ -1007,10 +1007,14 @@ g_signal_handler_disconnect(chooser, handlerid_activate); g_signal_handler_disconnect(button_add, handlerid_do); g_signal_handler_disconnect(chooser, handlerid_do_activate); - if (cfg.refresh_file_list) { - // *sigh* force a refresh - gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(chooser),gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(chooser))); - } + + if (cfg.refresh_file_list) + { + gchar *tmp = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(chooser)); + gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(chooser), tmp); + + g_free(tmp); + } } if (play_button) {