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,8 +114,9 @@ class DirectSlider(DirectFrame):
raise ValueError, 'Invalid value for orientation: %s' % (self['orientation']) raise ValueError, 'Invalid value for orientation: %s' % (self['orientation'])
def destroy(self): def destroy(self):
self.thumb.destroy() # ow! if (hasattr(self, 'thumb')):
del self.thumb self.thumb.destroy() # ow!
del self.thumb
DirectFrame.destroy(self) DirectFrame.destroy(self)
def commandFunc(self): def commandFunc(self):