/// <summary> /// UnloadContent will be called once per game and is the place to unload /// game-specific content. /// </summary> protected override void UnloadContent() { // TODO: Unload any non ContentManager content here base.UnloadContent(); spriteBatch.Dispose(); // If you are creating your texture (instead of loading it with // Content.Load) then you must Dispose of it dinosaur.Dispose(); }