Unref the style when removing it from the hash table. (#314696, Benjamin

2005-10-03  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtkrc.c (gtk_rc_clear_realized_style): Unref the style when
	removing it from the hash table.  (#314696, Benjamin Berg)
This commit is contained in:
Matthias Clasen 2005-10-03 16:23:56 +00:00 committed by Matthias Clasen
parent 73a27a3cee
commit 1ab667fcbb
3 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* 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 <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case

View File

@ -1,3 +1,8 @@
2005-10-03 Matthias Clasen <mclasen@redhat.com>
* 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 <tml@novell.com>
* gdk/win32/gdkdrawable-win32.c (blit_from_pixmap): In case

View File

@ -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;