[poppler] poppler/StructElement.cc
Albert Astals Cid
aacid at kemper.freedesktop.org
Sun Jul 5 15:32:04 PDT 2015
poppler/StructElement.cc | 15 +++++++++++++++
1 file changed, 15 insertions(+)
New commits:
commit 0b8919f19dd501c9962bca05c9b0559464e923c3
Author: Dmytro Morgun <lztoad at gmail.com>
Date: Mon Jul 6 00:28:27 2015 +0200
Fix pedantic memory leak
diff --git a/poppler/StructElement.cc b/poppler/StructElement.cc
index b1aaca8..c668820 100644
--- a/poppler/StructElement.cc
+++ b/poppler/StructElement.cc
@@ -7,6 +7,7 @@
// Copyright 2013, 2014 Igalia S.L.
// Copyright 2014 Luigi Scarso <luigi.scarso at gmail.com>
// Copyright 2014 Albert Astals Cid <aacid at kde.org>
+// Copyright 2015 Dmytro Morgun <lztoad at gmail.com>
//
//========================================================================
@@ -279,6 +280,20 @@ struct AttributeDefaults {
Before.initName("Before");
Nat1.initInt(1);
}
+
+ ~AttributeDefaults() {
+ Inline.free();
+ LrTb.free();
+ Normal.free();
+ Distribute.free();
+ off.free();
+ Zero.free();
+ Auto.free();
+ Start.free();
+ None.free();
+ Before.free();
+ Nat1.free();
+ }
};
static const AttributeDefaults attributeDefaults;
More information about the poppler
mailing list