From 822342ba2a86958d7eb60c11e728dec51605699d Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 16 Nov 2014 13:23:33 +0100 Subject: pdf: Fix memory leak when adding new text annotations origin commit: https://gitlab.gnome.org/GNOME/evince/commit/a182f12 --- backend/pdf/ev-poppler.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.1