From 17fef0f841a983e9279db82440eeb73c4d603a1e Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Tue, 8 Jan 2002 19:47:13 +0000 Subject: [PATCH] Fix leak of result of gtk_container_get_children(). Tue Jan 8 14:45:43 2002 Owen Taylor * gtk/gtkwidget.c (gtk_widget_add_events): Fix leak of result of gtk_container_get_children(). --- ChangeLog | 7 ++++++- ChangeLog.pre-2-0 | 7 ++++++- ChangeLog.pre-2-10 | 7 ++++++- ChangeLog.pre-2-2 | 7 ++++++- ChangeLog.pre-2-4 | 7 ++++++- ChangeLog.pre-2-6 | 7 ++++++- ChangeLog.pre-2-8 | 7 ++++++- gtk/gtkwidget.c | 2 ++ 8 files changed, 44 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 08ad67acfc..9311855e75 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 08ad67acfc..9311855e75 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,7 +1,12 @@ +Tue Jan 8 14:45:43 2002 Owen Taylor + + * gtk/gtkwidget.c (gtk_widget_add_events): Fix + leak of result of gtk_container_get_children(). + Tue Jan 8 14:42:19 2002 Owen Taylor * gtk/gtktoolbar.c: Fix leaks of results of - gtk_container_get_children(). (#68199, Damon Chaplin.) + gtk_container_get_children(). (#68199, Damon Chaplin) Tue Jan 8 14:19:43 2002 Owen Taylor diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index 495022d373..2813e16fdc 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -4915,6 +4915,8 @@ gtk_widget_add_events (GtkWidget *widget, if (user_data == widget) gdk_window_set_events (window, gdk_window_get_events (window) | events); } + + g_list_free (children); } else {