fix photo fun memory leak identified in #109

This commit is contained in:
demiurgeQuantified 2023-10-31 18:58:44 +00:00
parent c50df48a06
commit f02cf5d809

View file

@ -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):