changeset 15254:e6adc7b25eb8

[gaim-migrate @ 18043] Plug a small leak in the pounce dialog. committer: Tailor Script <tailor@pidgin.im>
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 22 Dec 2006 06:39:55 +0000
parents 7dd8192b1a5c
children e711afcb9ff4
files gtk/gtkpounce.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gtk/gtkpounce.c	Fri Dec 22 05:31:54 2006 +0000
+++ b/gtk/gtkpounce.c	Fri Dec 22 06:39:55 2006 +0000
@@ -741,6 +741,8 @@
 	g_signal_connect(G_OBJECT(dialog->exec_cmd_browse), "clicked",
 					 G_CALLBACK(filesel),
 					 dialog->exec_cmd_entry);
+	g_object_set_data_full(G_OBJECT(dialog->window), "exec-widgets",
+				exec_widgets, (GDestroyNotify)g_ptr_array_free);
 
 	sound_widgets = g_ptr_array_new();
 	g_ptr_array_add(sound_widgets,dialog->play_sound_entry);
@@ -756,6 +758,8 @@
 	g_signal_connect(G_OBJECT(dialog->play_sound_test), "clicked",
 					 G_CALLBACK(pounce_test_sound),
 					 dialog->play_sound_entry);
+	g_object_set_data_full(G_OBJECT(dialog->window), "sound-widgets",
+				sound_widgets, (GDestroyNotify)g_ptr_array_free);
 
 	g_signal_connect(G_OBJECT(dialog->send_msg_entry), "activate",
 					 G_CALLBACK(save_pounce_cb), dialog);