Don't leak references to the color-hash gotten from GtkSettings. (#409357,
authorMatthias Clasen <mclasen@redhat.com>
Wed, 28 Feb 2007 17:00:55 +0000 (17:00 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Wed, 28 Feb 2007 17:00:55 +0000 (17:00 +0000)
2007-02-28  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkrc.c: Don't leak references to the color-hash
        gotten from GtkSettings.  (#409357, Benjamin Berg)

svn path=/trunk/; revision=17364

ChangeLog
gtk/gtkrc.c

index afe3066812d04939dc6e408fd269991df2dd41e7..c2d94692588e2efbf0105e63e5243e49ad28042e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,9 @@
-2006-02-28  Tristan Van Berkom <tvb@gnome.org>
+2007-02-28  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtkrc.c: Don't leak references to the color-hash 
+       gotten from GtkSettings.  (#409357, Benjamin Berg)
+
+2007-02-28  Tristan Van Berkom <tvb@gnome.org>
 
        * gtk/gtkradiobutton.c: Fixed a warning from
        g_object_set (radiobutton, "group", NULL, NULL).
index 2ba6f3687a0f879be8ef53774909e85405103a94..7853b29294215e390e3410e35e4f6d24d47c0802 100644 (file)
@@ -663,9 +663,6 @@ gtk_rc_color_hash_changed (GtkSettings  *settings,
   
   g_object_get (settings, "color-hash", &context->color_hash, NULL);
 
-  if (context->color_hash)
-    g_hash_table_ref (context->color_hash);
-
   if (!context->reloading)
     gtk_rc_reparse_all_for_settings (settings, TRUE);
 }
@@ -692,9 +689,6 @@ gtk_rc_context_get (GtkSettings *settings)
                    "color-hash", &context->color_hash,
                    NULL);
 
-      if (context->color_hash)
-        g_hash_table_ref (context->color_hash);
-
       g_signal_connect (settings,
                        "notify::gtk-theme-name",
                        G_CALLBACK (gtk_rc_settings_changed),