summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2005-10-03 16:37:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2005-10-03 16:37:49 +0000
commitd28b8f408841b3ce8e6b8548c795effdcee4e685 (patch)
tree6899ae0d47ade6244ece593b19368a5be8374d16
parentfd5394784abccfa969b7ba469752d0b58333f6dd (diff)
downloadgdk-pixbuf-d28b8f408841b3ce8e6b8548c795effdcee4e685.tar.gz
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)
-rw-r--r--ChangeLog5
-rw-r--r--ChangeLog.pre-2-105
-rw-r--r--gtk/gtkrc.c3
3 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cb3547aec..654fa9f7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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 <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
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)
{