Fix use-after-free in `EditorHelp`

This commit is contained in:
Mikael Hermansson 2024-08-09 02:42:58 +02:00
parent 739019e4e4
commit 6435112e97
1 changed files with 1 additions and 0 deletions

View File

@ -3024,6 +3024,7 @@ void EditorHelp::update_doc() {
void EditorHelp::cleanup_doc() { void EditorHelp::cleanup_doc() {
_wait_for_thread(); _wait_for_thread();
memdelete(doc); memdelete(doc);
doc = nullptr;
} }
Vector<Pair<String, int>> EditorHelp::get_sections() { Vector<Pair<String, int>> EditorHelp::get_sections() {