mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Prevent free twice.
This commit is contained in:
parent
60b62dd82f
commit
07776f816b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user