summaryrefslogtreecommitdiff
path: root/src/core.py
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-03-07 21:41:13 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-03-07 21:41:13 +0100
commit8f48c5ede7e1da18f85daae9bda5a4b68272498b (patch)
tree2ccbe6a10613ee0e5301e81fde396fd04fccf543 /src/core.py
parenta769babf0acd03bf9c22a5f03808dab7b0c52cc4 (diff)
downloadpoezio-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.py9
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):
"""