summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-01-31 15:33:10 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-01-31 15:33:10 +0000
commit3269b900f8869f7de45465a32d126107e5351b7f (patch)
treea626050c42d3ed6ea9cc1005e800a120f7ac00d6 /gtk/gtkmain.c
parentebcd58f748dc4d65786471d6fa0b291e60c38731 (diff)
downloadgdk-pixbuf-3269b900f8869f7de45465a32d126107e5351b7f.tar.gz
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)
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 813988fda..1af4cb1eb 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -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