changeset 931:26b580493ce2 trunk

[svn] Moved the free, based on Joker's report of string corruptions.
author nemo
date Fri, 14 Apr 2006 10:38:26 -0700
parents 26faaefca088
children 2fc785535aad
files Plugins/General/song_change/song_change.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Plugins/General/song_change/song_change.c	Fri Apr 14 10:11:18 2006 -0700
+++ b/Plugins/General/song_change/song_change.c	Fri Apr 14 10:38:26 2006 -0700
@@ -106,9 +106,6 @@
 	bmp_cfg_db_set_string(db, "song_change", "cmd_line_after", cmd_after);
 	bmp_cfg_db_set_string(db, "song_change", "cmd_line_end", cmd_end);
 	bmp_cfg_db_close(db);
-	g_free(cmd);
-	g_free(cmd_after);
-	g_free(cmd_end);
 
 	if (timeout_tag)
 	{
@@ -120,6 +117,10 @@
 		cmd_line_end = g_strdup(cmd_end);
 	}
 	gtk_widget_destroy(configure_win);
+
+	g_free(cmd);
+	g_free(cmd_after);
+	g_free(cmd_end);
 }
 
 static void warn_user(void)