Skip to content
  • Nathan Mills's avatar
    Break reference cycle when loading/ending a level. · 46111fb5
    Nathan Mills authored and Rémi Verschelde's avatar Rémi Verschelde committed
    Fixes a 5 Mb memory leak.
    
    Clear the victim pointer when calling LoadLevel, LoadJsonLevel, or
    deleteGame, thus stopping a Person and the Person's victim from pointing at
    each other, which is a reference cycle where neither Person can be
    destroyed.
    46111fb5