From 6052169921298aa4c343982922b1528a24eb2c84 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Mon, 27 Sep 2010 18:21:26 +0200 Subject: [PATCH] fix a memory leak --- zathura.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zathura.c b/zathura.c index 0d4f7ce..415268b 100644 --- a/zathura.c +++ b/zathura.c @@ -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