From 0c153b46e2434780bf68ceda47e1f3d8a7db6ded Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 9 Apr 2008 20:20:19 +0000 Subject: [PATCH] Don't leak apps_by_name in GBookmarkFile metadata items 2008-04-09 Federico Mena Quintero * glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak the apps_by_name hash table if the applications list is empty. Signed-off-by: Federico Mena Quintero svn path=/trunk/; revision=6846 --- ChangeLog | 5 +++++ glib/gbookmarkfile.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2028a34..72ad4b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-04-09 Federico Mena Quintero + + * glib/gbookmarkfile.c (bookmark_metadata_free): Don't leak + the apps_by_name hash table if the applications list is empty. + 2008-04-08 Behdad Esfahbod * glib/gunicode.h: Add ISO 15924 code comments for new scripts. diff --git a/glib/gbookmarkfile.c b/glib/gbookmarkfile.c index 70ce6ee..7c34312 100644 --- a/glib/gbookmarkfile.c +++ b/glib/gbookmarkfile.c @@ -325,10 +325,10 @@ bookmark_metadata_free (BookmarkMetadata *metadata) (GFunc) bookmark_app_info_free, NULL); g_list_free (metadata->applications); - - g_hash_table_destroy (metadata->apps_by_name); } - + + g_hash_table_destroy (metadata->apps_by_name); + g_free (metadata->icon_href); g_free (metadata->icon_mime); -- 2.7.4