[NUI] Resolve DisposeRecursively crashed when we dispose scrollbase
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 27 Oct 2023 09:47:55 +0000 (18:47 +0900)
committerTaehyub Kim <taehyub.kim@samsung.com>
Mon, 30 Oct 2023 12:38:47 +0000 (21:38 +0900)
commit6ddc4d9c36b7f9bb857fd232e0762b0902ec4fa7
tree084f543d7ad3fe9171e5f1d0248bcab5bdba5d45
parent4e8c17ac6c5f9e58b57a84d23fd436f0a46f1dec
[NUI] Resolve DisposeRecursively crashed when we dispose scrollbase

Due to some app's implements, ContentView can be disposed before ScrollBase
itself disposed. In this case, ContentView is not null.

So, when we try to call RemovePropertyNotification, it become crashed.

To avoid these cases, let we make DisposeRecursively API makes more safety.

And also, fix some crash issue in PerformanceTest1Page.xaml.cs what
can be problem in future.

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI.Components/Controls/ScrollableBase.cs
src/Tizen.NUI/src/public/Common/Container.cs
test/NUITizenGallery/Examples/PerformanceTest/PerformanceTest1Page.xaml.cs