From d28b8f408841b3ce8e6b8548c795effdcee4e685 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 3 Oct 2005 16:37:49 +0000 Subject: Unref the style when removing it from the hash table. (#314696, Benjamin 2005-10-03 Matthias Clasen * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when removing it from the hash table. (#314696, Benjamin Berg) --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ gtk/gtkrc.c | 3 +++ 3 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index cb3547aec..654fa9f7d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-10-03 Matthias Clasen + + * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when + removing it from the hash table. (#314696, Benjamin Berg) + 2005-10-01 Tor Lillqvist * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index cb3547aec..654fa9f7d 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2005-10-03 Matthias Clasen + + * gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when + removing it from the hash table. (#314696, Benjamin Berg) + 2005-10-01 Tor Lillqvist * gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index 52725d1ad..2da3af5b1 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -1337,6 +1337,9 @@ gtk_rc_clear_realized_style (gpointer key, { GSList *rc_styles = key; GSList *tmp_list = rc_styles; + GtkStyle *style = value; + + g_object_unref (style); while (tmp_list) { -- cgit v1.2.1