diff --git a/gio/ChangeLog b/gio/ChangeLog index 512a8cbd0..d241a8cc1 100644 --- a/gio/ChangeLog +++ b/gio/ChangeLog @@ -1,3 +1,10 @@ +2009-02-27 David Zeuthen + + Bug 540461 – GEmblemedIcon leak + + * gemblemedicon.c (g_emblemed_icon_finalize): + Avoid leaking a GList. + 2009-02-27 Alexander Larsson * giomodule-priv.h: diff --git a/gio/gemblemedicon.c b/gio/gemblemedicon.c index 0fd221c5a..abfcf0c32 100644 --- a/gio/gemblemedicon.c +++ b/gio/gemblemedicon.c @@ -76,6 +76,7 @@ g_emblemed_icon_finalize (GObject *object) g_object_unref (emblemed->icon); g_list_foreach (emblemed->emblems, (GFunc) g_object_unref, NULL); + g_list_free (emblemed->emblems); (*G_OBJECT_CLASS (g_emblemed_icon_parent_class)->finalize) (object); }