Fix WeakHandleBase::Reset() 67/87167/3
authorXiangyin Ma <x1.ma@samsung.com>
Tue, 6 Sep 2016 14:41:54 +0000 (15:41 +0100)
committerXiangyin Ma <x1.ma@samsung.com>
Tue, 6 Sep 2016 15:19:27 +0000 (16:19 +0100)
commit1d5586a20a3e6b09d7aadac3d0e6d9a7c522cf08
tree087e67a7f1eba3f82b986e62a9db8fe64e33a0b7
parent0a8193887ef54d7f22f30a0199eddcbe9e4f8e01
Fix WeakHandleBase::Reset()

If Reset() is called somewhere, there is no way to check whether this WeakHandle is still valid. Attempts of calling GetBaseHandle() or operator ==, != will crash.

Change-Id: I161af6539f2a9ab971a55f0e1280ed890cd98715
automated-tests/src/dali/utc-Dali-WeakHandle.cpp
dali/devel-api/object/weak-handle.cpp