summaryrefslogtreecommitdiff
path: root/backend/comics/comics-document.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-09 14:36:40 +0300
committerStefano Karapetsas <[email protected]>2014-11-11 12:17:29 +0100
commit647d2147086c132e3fe9fe5698348922189535ae (patch)
tree88cd73a71a8fb31c2a0bddd3e6857d3860b91ca8 /backend/comics/comics-document.c
parent056d0ebdf2e29682472fdd1fda6ceae25a171f2f (diff)
downloadatril-647d2147086c132e3fe9fe5698348922189535ae.tar.bz2
atril-647d2147086c132e3fe9fe5698348922189535ae.tar.xz
don't leak memory
Closes https://github.com/mate-desktop/atril/pull/99
Diffstat (limited to 'backend/comics/comics-document.c')
-rw-r--r--backend/comics/comics-document.c7
1 files changed, 4 insertions, 3 deletions
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;
}