Skip to content

Commit

Permalink
To Avalonia.Controls.TopLevel.HandleClosed method body was added Aval…
Browse files Browse the repository at this point in the history
…onia.Controls.TopLevel.StopRendering method call
  • Loading branch information
flexxxxer committed Aug 5, 2023
1 parent 5b18289 commit 628455e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Avalonia.Controls/TopLevel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ private protected virtual void HandleClosed()
Renderer.SceneInvalidated -= SceneInvalidated;
// We need to wait for the renderer to complete any in-flight operations
Renderer.Dispose();
StopRendering();

Debug.Assert(PlatformImpl != null);
// The PlatformImpl is completely invalid at this point
Expand Down

0 comments on commit 628455e

Please sign in to comment.