diff --git a/ChangeLog b/ChangeLog index ec8e67ee21..b519d894f6 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 ec8e67ee21..b519d894f6 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 b4117b6d59..d02f289601 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -1337,7 +1337,10 @@ 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) { GtkRcStyle *rc_style = tmp_list->data;