mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
ebcd58f748
commit
3269b900f8
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user