mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 05:00:07 +00:00
recent-manager: Fix a memory leak caused by "recent-manager: Add a limit to the list's size"
Signed-off-by: Lauri Kasanen <curaga@operamail.com> https://bugzilla.gnome.org/show_bug.cgi?id=773587
This commit is contained in:
parent
14545342d5
commit
a28022e916
@ -1481,7 +1481,10 @@ gtk_recent_manager_clamp_to_size (GtkRecentManager *manager,
|
||||
uris = g_bookmark_file_get_uris (priv->recent_items, &n_uris);
|
||||
|
||||
if (n_uris < size)
|
||||
{
|
||||
g_strfreev (uris);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < n_uris - size; i++)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user