Fix minor mem leak.

git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4284 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
Nick Treleaven 2009-10-01 16:43:32 +00:00
parent 7e90bfb369
commit ad1c1d9889

View File

@ -319,6 +319,7 @@ on_new_with_file_template(GtkMenuItem *menuitem, G_GNUC_UNUSED gpointer user_dat
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);