[NUI] Fix signal bugs in View and Window
authorJiyun Yang <ji.yang@samsung.com>
Wed, 29 Mar 2023 10:31:03 +0000 (19:31 +0900)
committerJiyun Yang <ji.yang@samsung.com>
Fri, 31 Mar 2023 03:57:58 +0000 (12:57 +0900)
commit688f96c4cbf6cb2c8d6c3dc155363c83528f5df4
tree249ab40433c0a51fd9424a3561eaf54dfbd2c5e9
parent0839992e35b63176e9cbe7fad95d849560272c4b
[NUI] Fix signal bugs in View and Window

* Do not try to disconnect callback unless the callback is not null.
* Ensure a signal has valid cptr before calling Connect/Disconnect.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/Common/Disposable.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEvent.cs
src/Tizen.NUI/src/public/Window/WindowEvent.cs