Don't leak apps_by_name in GBookmarkFile metadata items

2008-04-09  Federico Mena Quintero  <federico@novell.com>

	* 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 <federico@gnu.org>

svn path=/trunk/; revision=6846
This commit is contained in:
Federico Mena Quintero 2008-04-09 20:20:19 +00:00 committed by Federico Mena Quintero
parent 105dc15a03
commit 0c153b46e2
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-04-09 Federico Mena Quintero <federico@novell.com>
* 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 <behdad@gnome.org>
* glib/gunicode.h: Add ISO 15924 code comments for new scripts.

View File

@ -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);