g_strfreev() the uris returned by g_bookmark_file_get_uris().

2008-04-18  Michael Natterer  <mitch@imendio.com>

	* gtk/gtkrecentmanager.c (gtk_recent_manager_clamp_to_age):
	g_strfreev() the uris returned by g_bookmark_file_get_uris().


svn path=/trunk/; revision=20019
This commit is contained in:
Michael Natterer 2008-04-18 13:05:56 +00:00 committed by Michael Natterer
parent 351b6112ac
commit 60b839bda8
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-04-18 Michael Natterer <mitch@imendio.com>
* gtk/gtkrecentmanager.c (gtk_recent_manager_clamp_to_age):
g_strfreev() the uris returned by g_bookmark_file_get_uris().
2008-04-17 Michael Natterer <mitch@imendio.com>
* gtk/gtkiconfactory.c (get_default_icons): register the

View File

@ -1361,6 +1361,7 @@ gtk_recent_manager_clamp_to_age (GtkRecentManager *manager,
now = time (NULL);
uris = g_bookmark_file_get_uris (priv->recent_items, &n_uris);
for (i = 0; i < n_uris; i++)
{
const gchar *uri = uris[i];
@ -1372,6 +1373,8 @@ gtk_recent_manager_clamp_to_age (GtkRecentManager *manager,
if (item_age > age)
g_bookmark_file_remove_item (priv->recent_items, uri, NULL);
}
g_strfreev (uris);
}
/*****************