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 682979 - memory leak fix: unref item_type_info on all switch breaks
memory leak fix: unref item_type_info on all switch breaks
Status: RESOLVED FIXED
Product: pygobject
Classification: Bindings
Component: general
Git master
Other Linux
: Normal major
: ---
Assigned To: Nobody's working on this now (help wanted and appreciated)
Python bindings maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-29 19:29 UTC by Alban Browaeys
Modified: 2012-09-03 05:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
memory leak fix: unref item_type_info on all switch breaks (1.45 KB, patch)
2012-08-29 19:29 UTC, Alban Browaeys
none Details | Review

Description Alban Browaeys 2012-08-29 19:29:03 UTC
Created attachment 222833 [details] [review]
memory leak fix: unref item_type_info on all switch breaks

Avoid leaking the item_type_info when breaking out of the
switch.
Comment 1 Martin Pitt 2012-09-03 05:21:17 UTC
Thanks for spotting this! Pushed.

When reviewing this, I noticed that this part of the code is needing some cleanup, so I committed

http://git.gnome.org/browse/pygobject/commit/?id=1223358e2c558dd7ac3300126f989054ec5a5b3f