SF.net SVN: geany:[4284] trunk/src/templates.c

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Oct 1 16:43:49 UTC 2009


Revision: 4284
          http://geany.svn.sourceforge.net/geany/?rev=4284&view=rev
Author:   ntrel
Date:     2009-10-01 16:43:32 +0000 (Thu, 01 Oct 2009)

Log Message:
-----------
Fix minor mem leak.

Modified Paths:
--------------
    trunk/src/templates.c

Modified: trunk/src/templates.c
===================================================================
--- trunk/src/templates.c	2009-10-01 16:39:38 UTC (rev 4283)
+++ trunk/src/templates.c	2009-10-01 16:43:32 UTC (rev 4284)
@@ -319,6 +319,7 @@
 	if (!template)
 	{
 		/* try the system path */
+		g_free(path);
 		path = g_build_path(G_DIR_SEPARATOR_S, app->datadir, GEANY_TEMPLATES_SUBDIR,
 			"files", fname, NULL);
 		template = get_template_from_file(path, new_filename, ft);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list