summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-05 12:24:49 +0100
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2020-03-05 12:28:22 +0100
commite5ec499a92162b785cf4283c095720e0b7f15dae (patch)
treea7eda5de459f42d34275e9ab8f6146bc86b70118
parente8b68c48eaba0874274c507872336e29895658a5 (diff)
Fix some bugs spotted by asan in editor debugger.
EditorDebuggerInspector is in tree, so it gets automatically deleted, when clearing errors the debugger should not fake a process notification.
-rw-r--r--editor/debugger/editor_debugger_inspector.cpp1
-rw-r--r--editor/debugger/script_editor_debugger.cpp4
2 files changed, 2 insertions, 3 deletions
diff --git a/editor/debugger/editor_debugger_inspector.cpp b/editor/debugger/editor_debugger_inspector.cpp
index 6ada212323..1506d64b63 100644
--- a/editor/debugger/editor_debugger_inspector.cpp
+++ b/editor/debugger/editor_debugger_inspector.cpp
@@ -91,6 +91,7 @@ EditorDebuggerInspector::EditorDebuggerInspector() {
}
EditorDebuggerInspector::~EditorDebuggerInspector() {
+ clear_cache();
memdelete(variables);
}
diff --git a/editor/debugger/script_editor_debugger.cpp b/editor/debugger/script_editor_debugger.cpp
index 40c79b08e6..169ff61e71 100644
--- a/editor/debugger/script_editor_debugger.cpp
+++ b/editor/debugger/script_editor_debugger.cpp
@@ -1423,7 +1423,7 @@ void ScriptEditorDebugger::_clear_errors_list() {
error_tree->clear();
error_count = 0;
warning_count = 0;
- _notification(NOTIFICATION_PROCESS);
+ update_tabs();
}
// Right click on specific file(s) or folder(s).
@@ -1834,7 +1834,5 @@ ScriptEditorDebugger::ScriptEditorDebugger(EditorNode *p_editor) {
ScriptEditorDebugger::~ScriptEditorDebugger() {
ppeer->set_stream_peer(Ref<StreamPeer>());
-
- inspector->clear_cache();
memdelete(scene_tree);
}