Prevent free twice.

This commit is contained in:
aignacio_sf 2007-02-02 05:41:55 +00:00
parent 60b62dd82f
commit 07776f816b

View File

@ -114,6 +114,7 @@ class DirectSlider(DirectFrame):
raise ValueError, 'Invalid value for orientation: %s' % (self['orientation'])
def destroy(self):
if (hasattr(self, 'thumb')):
self.thumb.destroy() # ow!
del self.thumb
DirectFrame.destroy(self)