diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-03-07 21:41:13 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-03-07 21:41:13 +0100 |
commit | 8f48c5ede7e1da18f85daae9bda5a4b68272498b (patch) | |
tree | 2ccbe6a10613ee0e5301e81fde396fd04fccf543 /src/core.py | |
parent | a769babf0acd03bf9c22a5f03808dab7b0c52cc4 (diff) | |
download | poezio-8f48c5ede7e1da18f85daae9bda5a4b68272498b.tar.gz poezio-8f48c5ede7e1da18f85daae9bda5a4b68272498b.tar.bz2 poezio-8f48c5ede7e1da18f85daae9bda5a4b68272498b.tar.xz poezio-8f48c5ede7e1da18f85daae9bda5a4b68272498b.zip |
Inputs are garbage collected, making MucListTab collectable.
Memory improvement issues.
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/core.py b/src/core.py index d113fe25..99ae27d1 100644 --- a/src/core.py +++ b/src/core.py @@ -1200,12 +1200,15 @@ class Core(object): if isinstance(tab, tabs.RosterInfoTab) or\ isinstance(tab, tabs.InfoTab): return # The tab 0 should NEVER be closed + del tab.key_func # Remove self references + del tab.commands # and make the object collectable tab.on_close() self.tabs.remove(tab) - self.rotate_rooms_left() - del tab.key_func # Remove self references - del tab.commands # and make the object collectable + import gc + gc.collect() + log.debug('___ Referrers of closing tab:\n%s\n______' % gc.get_referrers(tab)) del tab + self.refresh_window() def move_separator(self): """ |