[evince/gnome-3-10] djvu: Fix a segfault caused by a double free
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-3-10] djvu: Fix a segfault caused by a double free
- Date: Tue, 29 Oct 2013 12:03:35 +0000 (UTC)
commit 73cd70a40179e5dbbeca8d3be64eddca07b2383e
Author: José Aliste <jaliste src gnome org>
Date: Tue Oct 29 08:37:21 2013 -0300
djvu: Fix a segfault caused by a double free
In the case there were missing files in the djvu,
there was a double free of the file variable.
Fixes bug #710977
backend/djvu/djvu-document.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
---
diff --git a/backend/djvu/djvu-document.c b/backend/djvu/djvu-document.c
index cf9e33a..b3644cc 100644
--- a/backend/djvu/djvu-document.c
+++ b/backend/djvu/djvu-document.c
@@ -248,7 +248,6 @@ djvu_document_load (EvDocument *document,
file = g_build_filename (base, fileinfo.id, NULL);
if (!g_file_test (file, G_FILE_TEST_EXISTS)) {
missing_files = TRUE;
- g_free (file);
}
g_free (file);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]