Bug 91057 - poppler AttributeDefaults leaking
Summary: poppler AttributeDefaults leaking
Status: RESOLVED FIXED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: All All
: medium minor
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-22 12:43 UTC by Dmytro Morgun
Modified: 2015-07-08 09:03 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Suggested StructElement.cc patch. (309 bytes, text/plain)
2015-06-22 12:43 UTC, Dmytro Morgun
Details

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.