[evince] pdf: Fix memory leak when adding new text annotations



commit a182f12f1bd7002e06ab59481404252c1147a7f1
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 a9aaa13..c17461d 100644
--- a/backend/pdf/ev-poppler.cc
+++ b/backend/pdf/ev-poppler.cc
@@ -3212,7 +3212,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]