Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

Memdelete disabled breakpoint items

Simon Döhl65e5a8d86a19
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index 94d3007563c..e20d73dd8b4 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/editor/debugger/script_editor_debugger.cpp
@@ -1787,9 +1787,9 @@ void ScriptEditorDebugger::set_breakpoint(const String &p_path, int p_line, bool
}
if (!p_enabled) {
- path_item->remove_child(breakpoint_item);
+ memdelete(breakpoint_item);
if (path_item->get_first_child() == nullptr) {
- breakpoints_tree->get_root()->remove_child(path_item);
+ memdelete(path_item);
}
}
}