Commit 18d2df83 authored by Federico Mena Quintero's avatar Federico Mena Quintero Committed by Federico Mena Quintero

Fix a memory leak

2008-04-09  Federico Mena Quintero  <federico@novell.com>

	* bookmark-agent.c (create_doc_item): Don't leak the template
	filename.
Signed-off-by: 's avatarFederico Mena Quintero <federico@gnu.org>

svn path=/trunk/; revision=444
parent 335baddd
2008-04-09 Federico Mena Quintero <federico@novell.com>
* bookmark-agent.c (create_doc_item): Don't leak the template
filename.
2008-04-08 Federico Mena Quintero <federico@novell.com>
* bookmark-agent.c (bookmark_agent_remove_item): Free the uris we
......
......@@ -1094,7 +1094,6 @@ create_doc_item (BookmarkAgent *this, const gchar *uri)
g_file_set_contents (path, contents, length, NULL);
g_free (contents);
g_free (template);
}
else
fclose (g_fopen (path, "w"));
......@@ -1105,6 +1104,7 @@ create_doc_item (BookmarkAgent *this, const gchar *uri)
g_free (dir);
g_free (file);
g_free (path);
g_free (template);
}
if (! uri_new)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment