EditorPlugin.remove_inspector_plugin()
doesn't clean references, creating leaked instances at exit
#55648
Labels
Milestone
Godot version
v3.4.stable.official [206ba70]
System information
Windows 11 x64
Issue description
I was working in a integration of two different plugins, each one has different uses.
Making some experiments I discovered that, if you try to add more than 1 editor inspector plugin, at the moment you try to remove them, they'll not be removed from internal data of the inspector, causing leaked instances on exit.
Relevant code on source:
godot/editor/editor_inspector.cpp
Line 2182 in 96e70ac
Steps to reproduce
Create a new plugin and use this code:
The first inspector (inspector_a) will be removed without problems, but inspector_b will cause leaked instances when you close the editor.
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: