Fix various asset windows shutdown when editor is disposing during crash
This commit is contained in:
@@ -199,12 +199,12 @@ namespace FlaxEditor.Windows.Assets
|
||||
{
|
||||
if (IsDisposing)
|
||||
return;
|
||||
base.OnDestroy();
|
||||
|
||||
_videoPlayer.Stop();
|
||||
Object.Destroy(ref _videoPlayer);
|
||||
_item.RemoveReference(this);
|
||||
_item = null;
|
||||
|
||||
base.OnDestroy();
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
||||
Reference in New Issue
Block a user