[poppler] poppler/OptionalContent.cc

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Mar 21 20:53:17 UTC 2019


 poppler/OptionalContent.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit f4e902124c90333db9b2ff2fee3dcf01f52df999
Author: Albert Astals Cid <aacid at kde.org>
Date:   Thu Mar 21 20:02:28 2019 +0100

    Fix mismatched free/delete

diff --git a/poppler/OptionalContent.cc b/poppler/OptionalContent.cc
index 846a2ae6..3b77a9a4 100644
--- a/poppler/OptionalContent.cc
+++ b/poppler/OptionalContent.cc
@@ -455,7 +455,7 @@ GooList *OCDisplayNode::takeChildren() {
 }
 
 OCDisplayNode::~OCDisplayNode() {
-  gfree(name);
+  delete name;
   if (children) {
     deleteGooList<OCDisplayNode>(children);
   }


More information about the poppler mailing list