Permalink
Browse files

Merge pull request #535 from b3nn0/97d77aa41901696af1cd47d4aab748e323…

…8b9313

When exiting the game, UnloadContent() should be called by XNA
  • Loading branch information...
2 parents e5b692d + 561f763 commit 85a6bcf7a6c5b9bdf90a32aa67553e66a43422ca @tomspilman tomspilman committed Jun 19, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 MonoGame.Framework/Game.cs
@@ -373,6 +373,7 @@ public void Run(GameRunBehavior runBehavior)
Platform.RunLoop();
EndRun();
OnExiting(this, EventArgs.Empty);
+ UnloadContent();
break;
default:
throw new NotImplementedException(string.Format(
@@ -571,6 +572,7 @@ private void Platform_AsyncRunLoopEnded(object sender, EventArgs e)
platform.AsyncRunLoopEnded -= Platform_AsyncRunLoopEnded;
EndRun();
OnExiting(this, EventArgs.Empty);
+ UnloadContent();
}
#if WINRT

0 comments on commit 85a6bcf

Please sign in to comment.