Skip to content

Commit 2430fda

Browse files
committed
ensure to unregister tooltips on component destruction
1 parent 27e2bd0 commit 2430fda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

haxe/ui/core/Component.hx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package haxe.ui.core;
22

3+
import haxe.ui.tooltips.ToolTipManager;
34
import haxe.ui.backend.ComponentImpl;
45
import haxe.ui.events.AnimationEvent;
56
import haxe.ui.events.MouseEvent;
@@ -700,6 +701,7 @@ class Component extends ComponentImpl
700701
_compositeBuilder.destroy();
701702
}
702703
LocaleManager.instance.unregisterComponent(this);
704+
ToolTipManager.instance.unregisterTooltip(this);
703705
handleDestroy();
704706
onDestroy();
705707
if (_compositeBuilder != null) {

0 commit comments

Comments
 (0)