mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
prevent name conflicts: EnforcesCalldowns.destroy()->EC_destroy()
This commit is contained in:
parent
d244387ec3
commit
1983748912
@ -255,7 +255,7 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
|
||||
self.DistributedObject_deleted = 1
|
||||
self.cr = None
|
||||
self.dclass = None
|
||||
EnforcesCalldowns.destroy(self)
|
||||
EnforcesCalldowns.EC_destroy(self)
|
||||
|
||||
@calldownEnforced
|
||||
def generate(self):
|
||||
|
@ -2459,9 +2459,10 @@ class EnforcesCalldowns:
|
||||
Functor(EnforcesCalldowns._enforceCalldowns, oldMethod, name),
|
||||
self, self.__class__))
|
||||
|
||||
def destroy(self):
|
||||
def EC_destroy(self):
|
||||
if not __debug__:
|
||||
return
|
||||
# this must be called on destruction to prevent memory leaks
|
||||
#import pdb;pdb.set_trace()
|
||||
for name in self._obscuredMethodNames:
|
||||
delattr(self, name)
|
||||
del self._obscuredMethodNames
|
||||
|
Loading…
x
Reference in New Issue
Block a user