From d294438c6b7b61d0d8c2665025c095f02eada556 Mon Sep 17 00:00:00 2001 From: Ian Harrigan Date: Tue, 24 Sep 2024 09:51:50 +0200 Subject: [PATCH] clean up compositeBuilder references --- haxe/ui/core/Component.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/haxe/ui/core/Component.hx b/haxe/ui/core/Component.hx index 7a40c3478..20184e8ef 100644 --- a/haxe/ui/core/Component.hx +++ b/haxe/ui/core/Component.hx @@ -694,6 +694,10 @@ class Component extends ComponentImpl LocaleManager.instance.unregisterComponent(this); handleDestroy(); onDestroy(); + if (_compositeBuilder != null) { + @:privateAccess _compositeBuilder._component = null; + } + _compositeBuilder = null; } private function onDestroy() {