fix a memory leak

This commit is contained in:
Sebastian Ramacher 2010-09-27 18:21:26 +02:00
parent 6168bf1b68
commit 83811fc398

View File

@ -3415,7 +3415,9 @@ cmd_open(int argc, char** argv)
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