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:
parent
7e90bfb369
commit
ad1c1d9889
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user