Skip to content

Commit

Permalink
ensure to unregister tooltips on component destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed Feb 19, 2025
1 parent 27e2bd0 commit 2430fda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions haxe/ui/core/Component.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package haxe.ui.core;

import haxe.ui.tooltips.ToolTipManager;
import haxe.ui.backend.ComponentImpl;
import haxe.ui.events.AnimationEvent;
import haxe.ui.events.MouseEvent;
Expand Down Expand Up @@ -700,6 +701,7 @@ class Component extends ComponentImpl
_compositeBuilder.destroy();
}
LocaleManager.instance.unregisterComponent(this);
ToolTipManager.instance.unregisterTooltip(this);
handleDestroy();
onDestroy();
if (_compositeBuilder != null) {
Expand Down

0 comments on commit 2430fda

Please sign in to comment.