changeset 2269:c44b90b6322e

Fixes memory leak in song change plugin when applying configuration (Bugzilla #48)
author Jussi Judin <jjudin+audacious@iki.fi>
date Tue, 25 Dec 2007 02:16:51 -0600
parents bcd96cdc3a92
children aa94631d1a02
files src/song_change/song_change.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/song_change/song_change.c	Tue Dec 25 02:16:22 2007 -0600
+++ b/src/song_change/song_change.c	Tue Dec 25 02:16:51 2007 -0600
@@ -430,6 +430,7 @@
 	cmd_warn_label = gtk_label_new(temp);
 	gtk_label_set_markup(GTK_LABEL(cmd_warn_label), temp);
 	gtk_box_pack_start(GTK_BOX(bbox_hbox), cmd_warn_label, FALSE, FALSE, 0);
+        g_free(temp);
 
 	g_signal_connect(GTK_OBJECT(cmd_entry), "changed", GTK_SIGNAL_FUNC(configure_ok_cb), NULL);
 	g_signal_connect(GTK_OBJECT(cmd_after_entry), "changed", GTK_SIGNAL_FUNC(configure_ok_cb), NULL);