Don't use d->instanceModel after free'ing it
authorLars Knoll <lars.knoll@digia.com>
Thu, 12 Jun 2014 08:11:09 +0000 (10:11 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 26 Aug 2014 03:50:50 +0000 (05:50 +0200)
commiteadc35f499edd25d5d1c5f803db1d61675c1cc2c
treefc366e9c798c4fa863ba2d623c733242e32435a5
parentb0835b31fd456c30ea3fcaae6edc58212556477d
Don't use d->instanceModel after free'ing it

prevModel points to d->instanceModel and is being
used further down in the code. So reset the pointer
to 0 after freeing the old instanceModel.

Change-Id: I8854ae3e09c8b2fe50ad311f3dbc7b8ed26805e1
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/jsruntime/qv4arraydata.cpp
src/qml/types/qqmlinstantiator.cpp