changeset 825:9108277c95e9

[gaim-migrate @ 835] plugging small leaks. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 01 Sep 2000 18:39:28 +0000
parents 4886f52e04c3
children b8f6f1e8128e
files src/dialogs.c
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Fri Sep 01 16:47:56 2000 +0000
+++ b/src/dialogs.c	Fri Sep 01 18:39:28 2000 +0000
@@ -832,6 +832,11 @@
 	return tmp;
 }
 
+static void free_dialog(GtkWidget *w, struct addbuddy *a)
+{
+	g_free(a);
+}
+
 
 void show_add_group()
 {
@@ -879,6 +884,8 @@
         /* Handle closes right */
         gtk_signal_connect(GTK_OBJECT(a->window), "destroy",
                            GTK_SIGNAL_FUNC(destroy_dialog), a->window);
+	gtk_signal_connect(GTK_OBJECT(a->window), "destroy",
+			   GTK_SIGNAL_FUNC(free_dialog), a);
         gtk_signal_connect(GTK_OBJECT(cancel), "clicked",
                            GTK_SIGNAL_FUNC(destroy_dialog), a->window);
         gtk_signal_connect(GTK_OBJECT(add), "clicked",
@@ -963,6 +970,8 @@
         /* Handle closes right */
         gtk_signal_connect(GTK_OBJECT(a->window), "destroy",
                            GTK_SIGNAL_FUNC(destroy_dialog), a->window);
+	gtk_signal_connect(GTK_OBJECT(a->window), "destroy",
+			   GTK_SIGNAL_FUNC(free_dialog), a);
         gtk_signal_connect(GTK_OBJECT(cancel), "clicked",
                            GTK_SIGNAL_FUNC(destroy_dialog), a->window);
         gtk_signal_connect(GTK_OBJECT(add), "clicked",