History

Fix deleteLater issue

Karol Suprynowicz committed 10 months ago

Commit fa062011 parent ff875ce1 file · +5 −0Browse files

Showing the changes to libraries/script-engine/src/v8/ScriptEngineV8.cpp (1 of 1 file). Show all

Unified · Split

libraries/script-engine/src/v8/ScriptEngineV8.cpp+5−0
@@ -280,6 +280,11 @@ ScriptEngineV8::~ScriptEngineV8() { · 279 unmodified lines
280280 _qobjectWrapperMap.clear();
281281 _qobjectWrapperMapV8.clear();
282282 }
283+ // Events need to be processed one more time:
284+ {
285+ QEventLoop loop;
286+ loop.processEvents();
287+ }
283288 #ifdef OVERTE_SCRIPT_USE_AFTER_DELETE_GUARD
284289 _wasDestroyed = true;
285290 #endif