Set ptr to zero after freeing memory
authorChris Adams <christopher.adams@nokia.com>
Fri, 27 Apr 2012 07:42:06 +0000 (17:42 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 4 May 2012 00:36:27 +0000 (02:36 +0200)
commit9cc306916bf8bd70e79aa67458759985e9a26c0d
tree7dfd5daa744ba802c112add82b99e95cf4655a4c
parenteea254fea5c02fce1fed568604a87395c9049835
Set ptr to zero after freeing memory

This commit ensures that we set the notifyList to zero after
freeing it, to avoid possibility of dereferencing freed memory.

Change-Id: I0ce90507ad209748642a218608e118e5034bfabd
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlengine.cpp