From a2f1956865de84c14140605f902009057a42bde3 Mon Sep 17 00:00:00 2001 From: Michael Natterer Date: Wed, 23 Nov 2005 14:23:26 +0000 Subject: [PATCH] don't leak all toplevel windows on other screens (correctly remove all 2005-11-23 Michael Natterer * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel windows on other screens (correctly remove all temporary references). --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ gtk/gtkrc.c | 3 ++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cd8f5c72e0..3935903c01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-11-23 Michael Natterer + + * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel + windows on other screens (correctly remove all temporary + references). + 2005-11-23 Michael Natterer Added symbolic themable colors. Patch is a merged version of diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cd8f5c72e0..3935903c01 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-11-23 Michael Natterer + + * gtk/gtkrc.c (gtk_rc_reset_widgets): don't leak all toplevel + windows on other screens (correctly remove all temporary + references). + 2005-11-23 Michael Natterer Added symbolic themable colors. Patch is a merged version of diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 41c8160d1b..33396bb6df 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -1400,8 +1400,9 @@ gtk_rc_reset_widgets (GtkSettings *settings) if (gtk_widget_get_screen (list->data) == settings->screen) { gtk_widget_reset_rc_styles (list->data); - g_object_unref (list->data); } + + g_object_unref (list->data); } g_list_free (toplevels); }