gnome-main-menu r443 - trunk/libslab
- From: federico svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-main-menu r443 - trunk/libslab
- Date: Tue, 8 Apr 2008 19:40:16 +0100 (BST)
Author: federico
Date: Tue Apr 8 19:40:16 2008
New Revision: 443
URL: http://svn.gnome.org/viewvc/gnome-main-menu?rev=443&view=rev
Log:
Fix some memory leaks
2008-04-08 Federico Mena Quintero <federico novell com>
* bookmark-agent.c (bookmark_agent_remove_item): Free the uris we
got from the GBookmarkFile.
(load_xbel_store): Likewise.
Signed-off-by: Federico Mena Quintero <federico gnu org>
Modified:
trunk/libslab/ChangeLog
trunk/libslab/bookmark-agent.c
Modified: trunk/libslab/bookmark-agent.c
==============================================================================
--- trunk/libslab/bookmark-agent.c (original)
+++ trunk/libslab/bookmark-agent.c Tue Apr 8 19:40:16 2008
@@ -298,6 +298,8 @@
if (rank_i > rank)
set_rank (this, uris [i], rank_i - 1);
}
+
+ g_strfreev (uris);
}
save_store (this);
@@ -872,6 +874,8 @@
for (i = 0; uris && uris [i]; ++i)
priv->create_item (this, uris [i]);
+ g_strfreev (uris);
+
libslab_checkpoint ("load_xbel_store(): end creating items from %s", priv->store_path);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]