Changeset 1411:4774fd79c8ba in orange-bioinformatics


Ignore:
Timestamp:
06/06/11 16:00:04 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
2c63564ff1c137c2e632386f450186702c60cabf
Message:

Run gc.collect in onWidgetDelete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWGOEnrichmentAnalysis.py

    r1352 r1411  
    887887            self.listView._userMessage = text 
    888888            self.listView.viewport().update() 
     889             
     890    def onDeleteWidget(self): 
     891        """ Called before the widget is removed from the canvas. 
     892        """ 
     893        self.annotations = None 
     894        self.ontology = None 
     895        gc.collect() # Force collection 
     896         
    889897 
    890898class GOTreeWidgetItem(QTreeWidgetItem): 
Note: See TracChangeset for help on using the changeset viewer.