# HG changeset patch # User nenolod # Date 1158739986 25200 # Node ID be1c5774f675dfcab070abb6a5a857c1a97546cc # Parent a5fcf96e33fe73e2673b6391bdd1815e15d8aae5 [svn] - fix a memory leak in util_run_filebrowser() diff -r a5fcf96e33fe -r be1c5774f675 ChangeLog --- 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 + 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 revision [2437] - avoid conflict of mkdtemp() declaration between util.h and stdlib.h. diff -r a5fcf96e33fe -r be1c5774f675 audacious/util.c --- 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) {