diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index bf04dc0f4d4..6c56eca1a1c 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -1505,6 +1505,7 @@ void Viewport::_gui_show_tooltip() { // This way, the custom tooltip from `ConnectionsDockTree` can create // its own tooltip without conflicting with the default one, even an empty tooltip. if (base_tooltip && !base_tooltip->is_visible()) { + memdelete(base_tooltip); return; }