diff options
author | Carlos Garcia Campos <[email protected]> | 2014-11-16 13:23:33 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2020-02-15 14:00:58 +0300 |
commit | 822342ba2a86958d7eb60c11e728dec51605699d (patch) | |
tree | 7542278b895ee6cbe8095984b94951619c4946a0 | |
parent | f5b7f49755b62cb5c2242fc12c03459856b53173 (diff) | |
download | atril-822342ba2a86958d7eb60c11e728dec51605699d.tar.bz2 atril-822342ba2a86958d7eb60c11e728dec51605699d.tar.xz |
pdf: Fix memory leak when adding new text annotations
origin commit:
https://gitlab.gnome.org/GNOME/evince/commit/a182f12
-rw-r--r-- | 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 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) { |