Notify QQJSE::DW of expression deletion during dtor
authorChris Adams <christopher.adams@nokia.com>
Mon, 19 Mar 2012 02:19:53 +0000 (12:19 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Mar 2012 09:50:22 +0000 (10:50 +0100)
commit26d5f2e833f0e3686aaa27e695bbfab5fbd808ad
tree9519d48af819be5c9302f62e7304fda43b93256c
parent341f74356962faae682f6ede218e4e45aa959e13
Notify QQJSE::DW of expression deletion during dtor

QQmlJavaScriptExpression::DeleteWatcher's wasDeleted() function simply
checks to see if the pointer to the expression being watched is null.
This commit ensures that the DeleteWatcher's expression pointer is
set to null during QQJSE::dtor().

Change-Id: I566737bf30b4466ba96d771d9846fc3dd860cd2f
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qml/qml/qqmljavascriptexpression.cpp