diff --git a/GlitchyEditor/src/EditorLayer.bf b/GlitchyEditor/src/EditorLayer.bf index acfb8bf..9ecefca 100644 --- a/GlitchyEditor/src/EditorLayer.bf +++ b/GlitchyEditor/src/EditorLayer.bf @@ -149,7 +149,11 @@ namespace GlitchyEditor } } - private GlobalDragDropTarget _dragDropTarget ~ _?.ReleaseRef(); + private GlobalDragDropTarget _dragDropTarget ~ + { + _.Unregister(); + _?.ReleaseRef(); + } [AllowAppend] public this(String[] args, EditorContentManager contentManager) : base("Editor")