Fix crash due to alive reference to old asset validator

#3081
This commit is contained in:
Wojtek Figat
2024-12-10 17:01:41 +01:00
parent 4f281b4732
commit 139a431614
4 changed files with 17 additions and 2 deletions

View File

@@ -292,5 +292,17 @@ namespace FlaxEditor.CustomEditors.Editors
_isRefreshing = false;
}
}
/// <inheritdoc />
protected override void Deinitialize()
{
if (_validator != null)
{
_validator.OnDestroy();
_validator = null;
}
base.Deinitialize();
}
}
}