fix memleak
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 11 May 2006 12:06:04 +0000 (12:06 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 11 May 2006 12:06:04 +0000 (12:06 +0000)
lib/python/Components/GUIComponent.py

index afe9526..c3edaa7 100644 (file)
@@ -25,7 +25,7 @@ class GUIComponent(object):
                pass
        
        def destroy(self):
-               pass
+               self.__dict__.clear()
        
        # this works only with normal widgets - if you don't have self.instance, override this.
        def applySkin(self, desktop):