fix photo fun memory leak identified in #109
This commit is contained in:
parent
c50df48a06
commit
f02cf5d809
1 changed files with 5 additions and 0 deletions
|
@ -245,6 +245,11 @@ class DistributedPhotoGame(DistributedMinigame, PhotoGameBase.PhotoGameBase):
|
|||
self.removeChildGameFSM(self.gameFSM)
|
||||
del self.gameFSM
|
||||
self.ignoreAll()
|
||||
|
||||
for rayEntry in self.rayArray:
|
||||
rayEntry[3].remove_node()
|
||||
del self.rayArray
|
||||
|
||||
return
|
||||
|
||||
def onstage(self):
|
||||
|
|
Loading…
Reference in a new issue