Skip to content
This repository has been archived by the owner on Mar 30, 2019. It is now read-only.

Commit

Permalink
[Toolkit.Game] Added missing event handler unbinding for Desktop/WPF …
Browse files Browse the repository at this point in the history
…platform.
  • Loading branch information
ArtiomCiumac committed Nov 4, 2013
1 parent edeb957 commit fca3416
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -114,6 +114,8 @@ internal override void Switch(GameContext context)
element.ResizeCompleted -= OnClientSizeChanged;
element.MouseEnter -= OnMouseEnter;
element.MouseLeave -= OnMouseLeave;
element.Loaded -= HandleElementLoaded;
element.Unloaded -= HandleElementUnloaded;

element = null;

Expand Down Expand Up @@ -170,10 +172,6 @@ internal override void Initialize(GameContext gameContext)
element.Unloaded += HandleElementUnloaded;
}





internal override void Run()
{
Debug.Assert(InitCallback != null);
Expand Down

0 comments on commit fca3416

Please sign in to comment.