[evince/gnome-3-14] pdf: Fix memory leak when adding new text annotations
- From: Carlos Garcia Campos <carlosgc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince/gnome-3-14] pdf: Fix memory leak when adding new text annotations
- Date: Sun, 8 Mar 2015 08:53:50 +0000 (UTC)
commit e56e5e28c7ab90a6319995c6c34b033952eab6f8
Author: Carlos Garcia Campos <carlosgc gnome org>
Date: Sun Nov 16 13:23:33 2014 +0100
pdf: Fix memory leak when adding new text annotations
backend/pdf/ev-poppler.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 631eab4..d9da194 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -3206,7 +3206,7 @@ pdf_document_annotations_add_annotation (EvDocumentAnnotations *document_annotat
annot_mapping->data = annot;
g_object_set_data_full (G_OBJECT (annot),
"poppler-annot",
- g_object_ref (poppler_annot),
+ poppler_annot,
(GDestroyNotify) g_object_unref);
if (pdf_document->annots) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]