gtk+ r20019 - in trunk: . gtk



Author: mitch
Date: Fri Apr 18 13:05:56 2008
New Revision: 20019
URL: http://svn.gnome.org/viewvc/gtk+?rev=20019&view=rev

Log:
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().



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkrecentmanager.c

Modified: trunk/gtk/gtkrecentmanager.c
==============================================================================
--- trunk/gtk/gtkrecentmanager.c	(original)
+++ trunk/gtk/gtkrecentmanager.c	Fri Apr 18 13:05:56 2008
@@ -1361,6 +1361,7 @@
   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 @@
       if (item_age > age)
         g_bookmark_file_remove_item (priv->recent_items, uri, NULL);
     }
+
+  g_strfreev (uris);
 }
 
 /*****************



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]