summaryrefslogtreecommitdiff
path: root/libdocument
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-22 21:25:19 -0200
committerPerberos <[email protected]>2011-12-22 21:25:19 -0200
commit8e56ff9a0cb8c2a8fc4b99d5dd3a622cedfa3234 (patch)
tree8508298dd3a24ec57b5b9cefab7fba0657c67f85 /libdocument
parent6c87e85a5f09ebd63c719768312fe08572e3dbb5 (diff)
downloadatril-8e56ff9a0cb8c2a8fc4b99d5dd3a622cedfa3234.tar.bz2
atril-8e56ff9a0cb8c2a8fc4b99d5dd3a622cedfa3234.tar.xz
crash on g_free the address 0 or 1
Diffstat (limited to 'libdocument')
-rw-r--r--libdocument/ev-document.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/libdocument/ev-document.c b/libdocument/ev-document.c
index 70349dcb..19d51d9b 100644
--- a/libdocument/ev-document.c
+++ b/libdocument/ev-document.c
@@ -753,7 +753,12 @@ ev_document_info_free (EvDocumentInfo *info)
g_free (info->keywords);
g_free (info->creator);
g_free (info->producer);
- g_free (info->linearized);
+
+ if (info->linearized != 0 && info->linearized != 1)
+ {
+ g_free(info->linearized);
+ }
+
g_free (info->security);
ev_document_license_free (info->license);