poppler/StructElement.cc | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
New commits: commit 0b8919f19dd501c9962bca05c9b0559464e923c3 Author: Dmytro Morgun <[email protected]> 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 <[email protected]> // Copyright 2014 Albert Astals Cid <[email protected]> +// Copyright 2015 Dmytro Morgun <[email protected]> // //======================================================================== @@ -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; _______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
