summaryrefslogtreecommitdiff
path: root/qt5
diff options
context:
space:
mode:
authorFabio D'Urso <fabiodurso@hotmail.it>2013-03-07 00:20:15 +0100
committerAlbert Astals Cid <aacid@kde.org>2013-06-30 21:10:28 +0200
commit19f8a88bba6022b8172477e6f52dfd36b2fc5e92 (patch)
treeeff13e622bd5cd46b81f416f8bf17a7d30ea8a1e /qt5
parent8bac4d1e43ce9a4c66fddc8430d7bed2d9aabba1 (diff)
qt5: Free some temporary memory in TextAnnotationPrivate::createNativeAnnot
There's no need to keep this buffer around after it has been flushed
Diffstat (limited to 'qt5')
-rw-r--r--qt5/src/poppler-annotation.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt5/src/poppler-annotation.cc b/qt5/src/poppler-annotation.cc
index c32771e5..baf05004 100644
--- a/qt5/src/poppler-annotation.cc
+++ b/qt5/src/poppler-annotation.cc
@@ -1684,6 +1684,8 @@ Annot* TextAnnotationPrivate::createNativeAnnot(::Page *destPage, DocumentData *
delete q;
+ inplaceCallout.clear(); // Free up memory
+
return pdfAnnot;
}