noreply at rubyforge.org
2008-Apr-16 08:37 UTC
[wxruby-development] [ wxruby-Bugs-19578 ] Potential memory leak with wxEvtHandler
Bugs item #19578, was opened at 2008-04-16 08:37 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19578&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Potential memory leak with wxEvtHandler Initial Comment: When event handlers are defined, the Procs that are associated with the handler must be preserved from ruby''s GC. At the moment this is done in EvtHandler.i by adding the Proc to a global variable call rb_callbacks. This means that the handler Procs are never destroyed, even when the associated EvtHandler object is gone. It would be better to preserve the Procs by associating them with an instance variable of the EvtHandler. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=19578&group_id=35