summaryrefslogtreecommitdiff
path: root/backend/epub/epub-document.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-12-09 11:54:06 +0300
committerinfirit <[email protected]>2014-12-10 02:37:54 +0100
commitde5565a08db58d9ce48a3a3c74e21120965dd5f0 (patch)
tree2ff80e403d6d7ee8a6d86426ae210c4499395e85 /backend/epub/epub-document.c
parentcf55d726548132dc05115cd4accf0a4d5f1bf5ee (diff)
downloadatril-de5565a08db58d9ce48a3a3c74e21120965dd5f0.tar.bz2
atril-de5565a08db58d9ce48a3a3c74e21120965dd5f0.tar.xz
fix some more leaks and stuff
Diffstat (limited to 'backend/epub/epub-document.c')
-rw-r--r--backend/epub/epub-document.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index 81d10282..5ea595ff 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -1216,9 +1216,9 @@ setup_document_index(EpubDocument *epub_document,gchar *containeruri)
//Apparently, sometimes authors don't even care to add a TOC!! Guess standards are just guidelines.
- if (tocfilename == NULL)
- {
+ if (tocfilename == NULL) {
//We didn't even find a nav file.The document has no TOC.
+ g_string_free(tocpath,TRUE);
return NULL;
}