Don't leak the GtkKeySnooperData. (#132038, R. McFarland)

Sat Jan 31 16:27:44 2004  Matthias Clasen  <maclas@gmx.de>

	* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
	GtkKeySnooperData.  (#132038, R. McFarland)
This commit is contained in:
Matthias Clasen 2004-01-31 15:33:10 +00:00 committed by Matthias Clasen
parent ebcd58f748
commit 3269b900f8
6 changed files with 30 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
GtkKeySnooperData. (#132038, R. McFarland)
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.

View File

@ -1,3 +1,8 @@
Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
GtkKeySnooperData. (#132038, R. McFarland)
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.

View File

@ -1,3 +1,8 @@
Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
GtkKeySnooperData. (#132038, R. McFarland)
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.

View File

@ -1,3 +1,8 @@
Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
GtkKeySnooperData. (#132038, R. McFarland)
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.

View File

@ -1,3 +1,8 @@
Sat Jan 31 16:27:44 2004 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_key_snooper_remove): Don't leak the
GtkKeySnooperData. (#132038, R. McFarland)
2004-01-30 Federico Mena Quintero <federico@ximian.com>
Fixes #132975.

View File

@ -1817,7 +1817,7 @@ gtk_key_snooper_install (GtkKeySnoopFunc snooper,
}
void
gtk_key_snooper_remove (guint snooper_id)
gtk_key_snooper_remove (guint snooper_id)
{
GtkKeySnooperData *data = NULL;
GSList *slist;
@ -1833,7 +1833,10 @@ gtk_key_snooper_remove (guint snooper_id)
data = NULL;
}
if (data)
key_snoopers = g_slist_remove (key_snoopers, data);
{
key_snoopers = g_slist_remove (key_snoopers, data);
g_free (data);
}
}
static gint