Readd the memory leak fix, since the assertion failures were traced to an

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

	* gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
	leak fix, since the assertion failures were traced to
	an xchat bug.  (#314696)
This commit is contained in:
Matthias Clasen 2005-10-05 14:11:23 +00:00 committed by Matthias Clasen
parent b24876a79c
commit e479bd4321
3 changed files with 11 additions and 0 deletions

View File

@ -1,5 +1,9 @@
2005-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
leak fix, since the assertion failures were traced to
an xchat bug. (#314696)
* gtk/gtkstyle.c (gtk_style_detach):
(gtk_style_attach): Documentation improvements.
(gtk_style_detach): Assert that the attach_count is > 0.

View File

@ -1,5 +1,9 @@
2005-10-05 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c (gtk_rc_clear_realized_style): Readd the memory
leak fix, since the assertion failures were traced to
an xchat bug. (#314696)
* gtk/gtkstyle.c (gtk_style_detach):
(gtk_style_attach): Documentation improvements.
(gtk_style_detach): Assert that the attach_count is > 0.

View File

@ -1336,7 +1336,10 @@ gtk_rc_clear_realized_style (gpointer key,
gpointer data)
{
GSList *rc_styles = key;
GtkStyle *style = value;
GSList *tmp_list = rc_styles;
g_object_unref (style);
while (tmp_list)
{