Skip to content

Commit

Permalink
Fix leaking gameevents #20
Browse files Browse the repository at this point in the history
  • Loading branch information
LGhassen committed Sep 9, 2022
1 parent c38d4c5 commit 60d7ee9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions EveManager/GlobalEVEManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,11 @@ public static void Log(String message)
UnityEngine.Debug.Log("EVEManager: " + message);
}

void OnDestroy()
{
GameEvents.onGUIApplicationLauncherReady.Remove(AddButton);
GameEvents.onGUIApplicationLauncherUnreadifying.Remove(RemoveButton);
}

}
}

0 comments on commit 60d7ee9

Please sign in to comment.