Fix video player shutdown on editor window close

This commit is contained in:
Wojtek Figat
2024-05-08 10:19:22 +02:00
parent deb2319190
commit 47f3ecbde2

View File

@@ -199,6 +199,8 @@ namespace FlaxEditor.Windows.Assets
{
if (IsDisposing)
return;
_videoPlayer.Stop();
Object.Destroy(ref _videoPlayer);
_item.RemoveReference(this);
_item = null;