diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-05-20 11:20:00 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2024-05-30 13:23:00 +0300 |
commit | 2c9df769adfb9824dbdf9c5355aa9f7e16438066 (patch) | |
tree | 2d5bf660c964f06baf40808c794ac66c3368cb6e /main | |
parent | 60844997bb2981c44e3b4396ab2918df90f13c97 (diff) | |
download | redot-engine-2c9df769adfb9824dbdf9c5355aa9f7e16438066.tar.gz |
Clean Input::frame_parsed_events before de-initialising scripting languages to ensure no script created events exist at the exit.
Diffstat (limited to 'main')
-rw-r--r-- | main/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/main.cpp b/main/main.cpp index 2bd421e5af..6b17c55efc 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -4182,6 +4182,12 @@ void Main::cleanup(bool p_force) { ERR_FAIL_COND(!_start_success); } +#ifdef DEBUG_ENABLED + if (input) { + input->flush_frame_parsed_events(); + } +#endif + for (int i = 0; i < TextServerManager::get_singleton()->get_interface_count(); i++) { TextServerManager::get_singleton()->get_interface(i)->cleanup(); } |