Merge pull request #110 from demiurgeQuantified/fix-photofun-memoryleak

Fix Photo Fun memory leak
This commit is contained in:
Little Cat 2023-11-07 21:20:33 -04:00 committed by GitHub
commit 1ec88ca7fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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