Clear references holding on to types in game assemblies
This commit is contained in:
@@ -192,6 +192,15 @@ namespace FlaxEditor.CustomEditors
|
|||||||
Presenter.AfterLayout?.Invoke(layout);
|
Presenter.AfterLayout?.Invoke(layout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Deinitialize()
|
||||||
|
{
|
||||||
|
Editor = null;
|
||||||
|
_overrideEditor = null;
|
||||||
|
|
||||||
|
base.Deinitialize();
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
protected override void OnModified()
|
protected override void OnModified()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1029,6 +1029,7 @@ namespace FlaxEditor.CustomEditors.Dedicated
|
|||||||
protected override void Deinitialize()
|
protected override void Deinitialize()
|
||||||
{
|
{
|
||||||
_scriptToggles = null;
|
_scriptToggles = null;
|
||||||
|
_scripts.Clear();
|
||||||
|
|
||||||
base.Deinitialize();
|
base.Deinitialize();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -799,6 +799,14 @@ namespace FlaxEditor.CustomEditors.Editors
|
|||||||
OnGroupsEnd();
|
OnGroupsEnd();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void Deinitialize()
|
||||||
|
{
|
||||||
|
_visibleIfCaches = null;
|
||||||
|
_visibleIfPropertiesListsCache = null;
|
||||||
|
|
||||||
|
base.Deinitialize();
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override void Refresh()
|
public override void Refresh()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -469,6 +469,7 @@ namespace FlaxEditor.SceneGraph
|
|||||||
{
|
{
|
||||||
ChildNodes[i].OnDispose();
|
ChildNodes[i].OnDispose();
|
||||||
}
|
}
|
||||||
|
ChildNodes.Clear();
|
||||||
|
|
||||||
SceneGraphFactory.Nodes.Remove(ID);
|
SceneGraphFactory.Nodes.Remove(ID);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ namespace FlaxEngine.GUI
|
|||||||
// Unlink
|
// Unlink
|
||||||
IsLayoutLocked = true;
|
IsLayoutLocked = true;
|
||||||
Parent = null;
|
Parent = null;
|
||||||
|
_showTarget = null;
|
||||||
|
|
||||||
// Close window
|
// Close window
|
||||||
if (_window)
|
if (_window)
|
||||||
|
|||||||
Reference in New Issue
Block a user