Summary: | GObject derived types do not chain finalize methods to their parent class | ||
---|---|---|---|
Product: | poppler | Reporter: | Glenn Rice <glennricster> |
Component: | glib frontend | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Glenn Rice
2012-10-02 02:10:17 UTC
I have noticed that there are other gobject derived classes that also do not properly chain up the finalize method to the parent classes. For example the PopplerFontInfo class does not do this either. However, some do. For example PopplerAttachment does. Not calling the parent classes finalize method is a potential memory leak. This also prevents some registered callbacks from being called at destruction time as needed. Fixed in master and 0.20 branch. Thanks for reporting. Thank you. Looks good. By the way, I found this while attempting to wrap the poppler-glib library via gmmproc. I will make the resulting poppler-glibmm available at some point. |
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.