Skip to content

Commit

Permalink
Fix one more gameevents leak
Browse files Browse the repository at this point in the history
  • Loading branch information
siimav committed Jun 12, 2024
1 parent 168e672 commit 3aa95fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RealAntennasProject/RealAntennasUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ public void OnDestroy()
GameEvents.OnMapExited.Remove(OnMapExit);
GameEvents.onGUIApplicationLauncherReady.Remove(OnGuiAppLauncherReady);
if (button != null)
{
GameEvents.onGameSceneLoadRequested.Remove(OnSceneChange);
ApplicationLauncher.Instance.RemoveModApplication(button);
}
}

public void OnMapExit()
Expand Down

0 comments on commit 3aa95fc

Please sign in to comment.