overte/libraries/script-engine
Anthony J. Thibault ac6fcf092c Fix memory corruption via lambdas that capture local variables by reference.
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.
2018-06-28 11:15:25 -07:00
..
src Fix memory corruption via lambdas that capture local variables by reference. 2018-06-28 11:15:25 -07:00
CMakeLists.txt Remove some unneeded Qt dependencies 2018-01-28 22:18:24 -08:00