Reference leak

Bug #124381 reported by Mike Droettboom
2
Affects Status Importance Assigned to Milestone
wxwidgets2.8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

wxPython 2.8.1.1 has a reference leak whereby every class that inherits from a wxPython class will leak a dictionary object. This bug was addressed in the wxPython 2.8.3.0 release, or it can be fixed independently with the following patch:

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/wxPython/src/helpers.cpp.diff?r1=1.145&r2=1.145.4.1

To reproduce, run the following Python script. If things are working correctly, the numbers printed out will not increase.

import wx
import gc

class Test(wx.Frame):
    pass

wxapp = wx.PySimpleApp()

for i in range(100):
    test = Test(None)
    print len(gc.get_objects())

Tags: patch
Emmet Hikory (persia)
Changed in wxwidgets2.8:
status: New → Confirmed
Revision history for this message
Luca Falavigna (dktrkranz) wrote :

Thank you for your bug report.
Gutsy provides 2.8.4.0 release, so this issue is solved.

Changed in wxwidgets2.8:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.