Fix crash issue when disposed custom view is on callback 90/304690/1
authorEunki, Hong <eunkiki.hong@samsung.com>
Tue, 23 Jan 2024 07:40:06 +0000 (16:40 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Tue, 23 Jan 2024 07:40:33 +0000 (16:40 +0900)
commit0cbf212cfc93773c7c6bd2eb40597c440642fcd7
tree91aa0230169f09b9ac6b3ac23ced97ab5dbf8efc
parent9f290e0143369c7776defdae60fd077d86146034
Fix crash issue when disposed custom view is on callback

It is possible that Disposed CustomView could be alive in dali side.
So if DirectorDisconnect() called ViewWrapper required to emit some callbacks,
It might be crashed.

To avoid this cases, let we branch whether the callback exist or not.

Change-Id: I0765b58ea11cf0d0ff26c31b69955e710c2dbac8
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
dali-csharp-binder/common/view-wrapper-impl-wrap.cpp