Make iteration over persistent values safer
authorLars Knoll <lars.knoll@theqtcompany.com>
Mon, 24 Aug 2015 08:42:18 +0000 (10:42 +0200)
committerSimon Hausmann <simon.hausmann@theqtcompany.com>
Mon, 24 Aug 2015 10:44:53 +0000 (10:44 +0000)
commit4898ddfcc1822dbffc179f77a2fe768d231cbc6c
treedddc80571d1401902d949c707b6f2899b9ba10e6
parentc907eb1b5bfc22ffcee1cc37ecfa762d7a3edd0a
Make iteration over persistent values safer

This makes it safe to destruct persistents while
we are iterating over them.

Change-Id: I8797d0c553d3201859cdf03fb25df28836e55691
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
src/qml/jsruntime/qv4persistent.cpp
src/qml/jsruntime/qv4persistent_p.h