Bug 91057

Summary: poppler AttributeDefaults leaking
Product: poppler Reporter: Dmytro Morgun <lztoad>
Component: generalAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: medium CC: lztoad
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Suggested StructElement.cc patch.

Description Dmytro Morgun 2015-06-22 12:43:47 UTC
Created attachment 116653 [details]
Suggested StructElement.cc patch.

Global
static const AttributeDefaults attributeDefaults;
leaks it's objects. I've encountered it on windows but it should be anywhere as there's no destructor in Object.
I'd suggest to add destructor to AttributeDefaults struct.
As is in the patch attached.
Comment 1 Albert Astals Cid 2015-07-05 22:29:16 UTC
Pushed, but you know this is a pedantic fix since it is just freeing a long lived object, right?
Comment 2 Dmytro Morgun 2015-07-08 09:03:53 UTC
That makes cppunit complain about leaks and we'd much like to make it happy.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.