From 6435112e97c6ea82ecd1caff7a02ac633023838f Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Fri, 9 Aug 2024 02:42:58 +0200 Subject: [PATCH] Fix use-after-free in `EditorHelp` --- editor/editor_help.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/editor/editor_help.cpp b/editor/editor_help.cpp index 637c39c8ec3..683e4e5cdaa 100644 --- a/editor/editor_help.cpp +++ b/editor/editor_help.cpp @@ -3024,6 +3024,7 @@ void EditorHelp::update_doc() { void EditorHelp::cleanup_doc() { _wait_for_thread(); memdelete(doc); + doc = nullptr; } Vector> EditorHelp::get_sections() {