Skip to content

Commit

Permalink
clean up compositeBuilder references
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Sep 24, 2024
1 parent 43c500d commit d294438
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions haxe/ui/core/Component.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d294438

Please sign in to comment.