Skip to content
Commit a98ed588 authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Fix crash with script engine's garbage collector.

If object ownership is controlled by script engine, the garbage
collector might start too early to delete objects, which leads to
crashes when we call "object->metaObject()". This patch changes all
object ownerships to the Qt ownership model and guarantees that they
are deleted at the end of a script run.

Note that this leads to a big data consumption if during a single run
a lot of edge/node objects are created and deleted and has to be improved.

Side note: fixing this was only possible by the good unit test coverage :)
parent 3157302a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment