Browse Source

To Avalonia.Controls.TopLevel.HandleClosed method body was added Avalonia.Controls.TopLevel.StopRendering method call

pull/12430/head
flexxxxer 3 years ago
parent
commit
628455ec3d
  1. 1
      src/Avalonia.Controls/TopLevel.cs

1
src/Avalonia.Controls/TopLevel.cs

@ -591,6 +591,7 @@ namespace Avalonia.Controls
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

Loading…
Cancel
Save