Fix a leak by not increasing the refcount of the GtkRecentInfo object when

2007-04-18  Emmanuele Bassi  <ebassi@gnome.org>

	* gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix
	a leak by not increasing the refcount of the GtkRecentInfo
	object when returning it (thanks to Matthias Clasen).

svn path=/trunk/; revision=17606
This commit is contained in:
Emmanuele Bassi
2007-04-18 14:37:49 +00:00
committed by Emmanuele Bassi
parent fb8638d0ac
commit b235fff0bf
2 changed files with 7 additions and 1 deletions

View File

@ -1231,7 +1231,7 @@ gtk_recent_manager_lookup_item (GtkRecentManager *manager,
return NULL;
}
return gtk_recent_info_ref (info);
return info;
}
/**