summaryrefslogtreecommitdiff
path: root/backend/pdf/ev-poppler.cc
diff options
context:
space:
mode:
authorCarlos Garcia Campos <[email protected]>2014-11-16 13:23:33 +0100
committerraveit65 <[email protected]>2020-01-15 13:55:30 +0100
commitccc66068e7aebee95da76c9871bce23b53663b15 (patch)
treea91e81f0cdd9dd53ef93736c5db21bddff176f8b /backend/pdf/ev-poppler.cc
parent79b512923fd7a32f46205945ec936f4e47bd2d0b (diff)
downloadatril-ccc66068e7aebee95da76c9871bce23b53663b15.tar.bz2
atril-ccc66068e7aebee95da76c9871bce23b53663b15.tar.xz
pdf: Fix memory leak when adding new text annotations
origin commit: https://gitlab.gnome.org/GNOME/evince/commit/a182f12
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r--backend/pdf/ev-poppler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc
index 2cda56eb..e21bd768 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -2988,7 +2988,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) {