From: <sa...@us...> - 2006-07-20 21:43:25
|
Revision: 16534 Author: sadrul Date: 2006-07-20 14:43:15 -0700 (Thu, 20 Jul 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16534&view=rev Log Message: ----------- Some more memleaks. Modified Paths: -------------- trunk/src/gtknotify.c trunk/src/notify.c Modified: trunk/src/gtknotify.c =================================================================== --- trunk/src/gtknotify.c 2006-07-20 19:51:34 UTC (rev 16533) +++ trunk/src/gtknotify.c 2006-07-20 21:43:15 UTC (rev 16534) @@ -53,6 +53,7 @@ GtkWidget *treeview; GtkWidget *window; gpointer user_data; + GaimNotifySearchResults *results; } GaimNotifySearchResultsData; @@ -684,6 +685,7 @@ data = g_malloc(sizeof(GaimNotifySearchResultsData)); data->user_data = user_data; + data->results = results; /* Create the window */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); @@ -812,6 +814,7 @@ g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(searchresults_callback_wrapper_cb), bd); + g_signal_connect_swapped(G_OBJECT(button), "destroy", G_CALLBACK(g_free), bd); } } @@ -864,6 +867,7 @@ GaimNotifySearchResultsData *data = (GaimNotifySearchResultsData *)ui_handle; gtk_widget_destroy(data->window); + gaim_notify_searchresults_free(data->results); g_free(data); } Modified: trunk/src/notify.c =================================================================== --- trunk/src/notify.c 2006-07-20 19:51:34 UTC (rev 16533) +++ trunk/src/notify.c 2006-07-20 21:43:15 UTC (rev 16534) @@ -200,6 +200,7 @@ for (l = results->buttons; l; l = g_list_delete_link(l, l)) { GaimNotifySearchButton *button = l->data; + g_free(button->label); g_free(button); } results->buttons = NULL; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |