You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cleanup method of AbstractWindow introduces new reference cycles. Ironically, it was apparently introduced in commit 8e3aa33 in order to break cycles.
The problem lies in the line self.component = None here: https://github.com/enthought/enable/blob/master/enable/abstract_window.py#L385. That assignment triggers the _component_changed static Traits listener, which in turn creates a new component and assigns that to self.component. That then triggers another call to _component_changed which handily inserts a reference back to the window from the component, creating a cycle.
The text was updated successfully, but these errors were encountered:
The
cleanup
method ofAbstractWindow
introduces new reference cycles. Ironically, it was apparently introduced in commit 8e3aa33 in order to break cycles.The problem lies in the line
self.component = None
here: https://github.com/enthought/enable/blob/master/enable/abstract_window.py#L385. That assignment triggers the_component_changed
static Traits listener, which in turn creates a new component and assigns that toself.component
. That then triggers another call to_component_changed
which handily inserts a reference back to the window from the component, creating a cycle.The text was updated successfully, but these errors were encountered: