From de5565a08db58d9ce48a3a3c74e21120965dd5f0 Mon Sep 17 00:00:00 2001 From: Monsta Date: Tue, 9 Dec 2014 11:54:06 +0300 Subject: fix some more leaks and stuff --- backend/epub/epub-document.c | 4 ++-- cut-n-paste/synctex/synctex_parser_utils.c | 2 ++ 2 files changed, 4 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; } diff --git a/cut-n-paste/synctex/synctex_parser_utils.c b/cut-n-paste/synctex/synctex_parser_utils.c index 0aef5777..e21cfa90 100644 --- a/cut-n-paste/synctex/synctex_parser_utils.c +++ b/cut-n-paste/synctex/synctex_parser_utils.c @@ -255,6 +255,7 @@ char * _synctex_merge_strings(const char * first,...) { size_t len = strlen(temp); if(UINT_MAX-len