Revision: 3711 http://geany.svn.sourceforge.net/geany/?rev=3711&view=rev Author: eht16 Date: 2009-04-16 17:57:29 +0000 (Thu, 16 Apr 2009)
Log Message: ----------- Fix a memory leak.
Modified Paths: -------------- trunk/src/treeviews.c
Modified: trunk/src/treeviews.c =================================================================== --- trunk/src/treeviews.c 2009-04-16 17:55:42 UTC (rev 3710) +++ trunk/src/treeviews.c 2009-04-16 17:57:29 UTC (rev 3711) @@ -277,6 +277,7 @@ { GeanyDocument *doc; gchar *name; + gboolean result;
if (utils_str_equal(dir, ".")) dir = GEANY_STRING_UNTITLED; @@ -285,7 +286,11 @@ g_return_val_if_fail(!doc, FALSE);
gtk_tree_model_get(GTK_TREE_MODEL(store_openfiles), iter, DOCUMENTS_SHORTNAME, &name, -1); - return utils_str_equal(name, dir); + + result = utils_str_equal(name, dir); + g_free(name); + + return result; }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.