Commit e56e5e28 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

pdf: Fix memory leak when adding new text annotations

parent 51d44a9c
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment