From 647d2147086c132e3fe9fe5698348922189535ae Mon Sep 17 00:00:00 2001 From: Monsta Date: Sun, 9 Nov 2014 14:36:40 +0300 Subject: don't leak memory Closes https://github.com/mate-desktop/atril/pull/99 --- backend/comics/comics-document.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'backend/comics') diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c index a135a743..bec8582f 100644 --- a/backend/comics/comics-document.c +++ b/backend/comics/comics-document.c @@ -957,7 +957,11 @@ extract_argv (EvDocument *document, gint page) comics_document->extract_command, quoted_archive, quoted_filename); + g_free (quoted_archive); + g_free (quoted_filename); + g_shell_parse_argv (command_line, NULL, &argv, &err); + g_free (command_line); if (err) { g_warning (_("Error %s"), err->message); @@ -965,8 +969,5 @@ extract_argv (EvDocument *document, gint page) return NULL; } - g_free (command_line); - g_free (quoted_archive); - g_free (quoted_filename); return argv; } -- cgit v1.2.1