diff options
author | Lars Knoll <[email protected]> | 2018-08-03 14:33:40 +0200 |
---|---|---|
committer | Simon Hausmann <[email protected]> | 2018-08-04 09:17:01 +0000 |
commit | c8daa17e9f4e753537a7069ad9bc27acd32bd29c (patch) | |
tree | a9a928a479c9b8fee90187c3237d59eaa771ed62 /src/qml/jsruntime | |
parent | 895a3f08b4feade6b377c1818a7fff9b0b1052c6 (diff) |
Fix crashes when GC'ing internal classes
The destroy() method of internal classes tries to reference
it's parent class to unregister itself there. This could go
wrong if the parent class had been destroyed already and it's
associated memory been freed by the GC.
Fix this by only freeing actual memory at the end after the
sweeping has been done.
Change-Id: I85beb4792038d5a1a5708f5897af2c1950f8b8d1
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime')
0 files changed, 0 insertions, 0 deletions