forked from AuroraMiddleware/gtk
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:
parent
351b6112ac
commit
60b839bda8
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*****************
|
||||
|
Loading…
Reference in New Issue
Block a user