Do not call RemoveObserver when we don't add it for PropertyResetter 98/309898/2
authorEunki, Hong <eunkiki.hong@samsung.com>
Thu, 18 Apr 2024 03:01:01 +0000 (12:01 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Thu, 18 Apr 2024 03:03:50 +0000 (12:03 +0900)
commit50d750707173c768f02a3a7595e9025e61befbc0
tree636219be9be3efeb766b147633e080f09c876b2b
parent1cb03b4a4078568c17a0a95b11a476b1e59cfc3f
Do not call RemoveObserver when we don't add it for PropertyResetter

It is possible that PropertyResetter destructed before Initialize()
when app terminate case.

If then, it is possible to got some crash when we try to access to
'destroyed' property owner, and call RemoveObserver();

To avoid this case, let we make ensure that we call initalized so
it is possible to call RemoveObserver().

Change-Id: I24b74f1d963090d867e1d047fe739132f9465ee3
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali/internal/update/common/property-resetter.h