fix a memory leak

This commit is contained in:
Sebastian Ramacher 2010-09-27 18:21:26 +02:00
parent b280852f2d
commit 6052169921

View file

@ -3415,7 +3415,9 @@ cmd_open(int argc, char** argv)
filepath = g_string_append(filepath, argv[i]); filepath = g_string_append(filepath, argv[i]);
} }
return open_file(filepath->str, NULL); gboolean res = open_file(filepath->str, NULL);
g_string_free(filepath, TRUE);
return res;
} }
gboolean gboolean