After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 660216 - Fix leaks of Pango objects
Fix leaks of Pango objects
Status: RESOLVED FIXED
Product: pygtk
Classification: Bindings
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
: 674092 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-09-27 04:22 UTC by Owen Taylor
Modified: 2013-04-05 18:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix leaks of Pango objects (1.77 KB, patch)
2011-09-27 04:24 UTC, Owen Taylor
none Details | Review

Description Owen Taylor 2011-09-27 04:22:48 UTC
Two out of the three leaks were noticed by code reading when I was looking
for the third (gtk.PrintContext.create_pango_layout), so please double-check
and compile-test before committing - I couldn't easily hook up the
environment where I was testing to the place where I had a pygtk checkout.
Comment 1 Owen Taylor 2011-09-27 04:24:24 UTC
Created attachment 197541 [details] [review]
Fix leaks of Pango objects

Gtk.PrintContext.create_pango_context()
Gtk.PrintContext.create_pango_layout()
pangocairo.CairoContext.create_layout()

were leaking the objects they returned.
Comment 2 Federico Mena Quintero 2013-04-05 18:18:51 UTC
*** Bug 674092 has been marked as a duplicate of this bug. ***
Comment 3 Federico Mena Quintero 2013-04-05 18:31:36 UTC
Pushed to master as commit eca72baa56.