2009-02-18 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Wed, 18 Feb 2009 10:19:53 +0000 (10:19 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Wed, 18 Feb 2009 10:19:53 +0000 (10:19 +0000)
* src/hildon-helper.c (attach_new_color_element): Fix memory
leak.

Fixes: NB#102262 (memory leak in hildon_button_set_style())

ChangeLog
src/hildon-helper.c

index 7ad036c..91ad72f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2009-02-18  Alberto Garcia  <agarcia@igalia.com>
 
+       * src/hildon-helper.c (attach_new_color_element): Fix memory
+       leak.
+
+       Fixes: NB#102262 (memory leak in hildon_button_set_style())
+
+2009-02-18  Alberto Garcia  <agarcia@igalia.com>
+
        * examples/hildon-button-example.c (common_buttons_window): Don't
        leak size groups.
 
index d0f357e..cd3026d 100644 (file)
@@ -158,6 +158,7 @@ attach_new_color_element                        (GtkWidget *widget,
             element->state == state &&
             element->is_color == TRUE) {
             /* Reusing ... */
+            g_free (element->logical_color_name);
             element->logical_color_name = g_strdup (color_name);
             return style_list;
         }