From e479bd43211a455cf6f1338376132442172c0280 Mon Sep 17 00:00:00 2001 From: Matthias Clasen <mclasen@redhat.com> Date: Wed, 5 Oct 2005 14:11:23 +0000 Subject: [PATCH] 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) --- ChangeLog | 4 ++++ ChangeLog.pre-2-10 | 4 ++++ gtk/gtkrc.c | 3 +++ 3 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index 88ef5e0089..480b1d8c87 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 88ef5e0089..480b1d8c87 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -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. diff --git a/gtk/gtkrc.c b/gtk/gtkrc.c index ee0899d3e6..f13886395e 100644 --- a/gtk/gtkrc.c +++ b/gtk/gtkrc.c @@ -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) { -- GitLab