mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:06:00 +01:00
fix a memory leak
This commit is contained in:
parent
b280852f2d
commit
6052169921
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue