mirror of
https://github.com/overte-org/overte.git
synced 2025-07-03 02:29:05 +02:00
The lambdas in ScriptEngine::fetchModuleSource() were referencing local stack variables by reference. This could lead to un-expected results including memory corruption. To workaround this issue the QTimer and QEventLoop variables are allocated on the heap and held onto by a shared_ptr. This shared_ptr is passed to the lambda. This will not result in cycles and should result in the QTimer and QEventLoop being destroyed when the BatchLoader object they are connected to is deleted. |
||
---|---|---|
.. | ||
src | ||
CMakeLists.txt |