You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 19:31:35 +00:00
Merge pull request #103793 from Rindbee/fix-memory-leak-caused-by-hidden-tooltip-controls
Fix memory leak caused by hidden tooltip controls
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user