changeset 17822:43da9c881fe9

Unleak a few bytes in the screenname completion code
author Stu Tomlinson <stu@nosnilmot.com>
date Sun, 10 Jun 2007 20:00:25 +0000
parents 9fafe265567f
children 91460e381dbc
files pidgin/gtkutils.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pidgin/gtkutils.c	Sun Jun 10 19:43:21 2007 +0000
+++ b/pidgin/gtkutils.c	Sun Jun 10 20:00:25 2007 +0000
@@ -2038,6 +2038,7 @@
 static void
 screenname_autocomplete_destroyed_cb(GtkWidget *widget, gpointer data)
 {
+	g_free(data);
 	purple_signals_disconnect_by_handle(widget);
 }
 
@@ -2119,7 +2120,7 @@
 	purple_signal_connect(purple_accounts_get_handle(), "account-removed", entry,
 						PURPLE_CALLBACK(repopulate_autocomplete), cb_data);
 
-	g_signal_connect(G_OBJECT(entry), "destroy", G_CALLBACK(screenname_autocomplete_destroyed_cb), NULL);
+	g_signal_connect(G_OBJECT(entry), "destroy", G_CALLBACK(screenname_autocomplete_destroyed_cb), data);
 }
 
 void pidgin_set_cursor(GtkWidget *widget, GdkCursorType cursor_type)