Skip to content

Commit

Permalink
break ref cycles on destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
sccolbert committed Jul 16, 2013
1 parent 33a0191 commit 03a5e53
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions enaml/qt/qt_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,17 @@ def init_cns_layout(self):
self._refresh = self._build_refresher(manager)
self._update_sizes()

def destroy(self):
""" An overridden destructor method.
This method breaks the internal reference cycles maintained
by the container.
"""
del self._layout_table
del self._refresh
super(QtContainer, self).destroy()

#--------------------------------------------------------------------------
# Signal Handlers
#--------------------------------------------------------------------------
Expand Down

0 comments on commit 03a5e53

Please sign in to comment.