[NUI] Make Unparent() in Dispose() be excuted early
authordongsug.song <dongsug.song@samsung.com>
Sat, 21 Aug 2021 07:45:54 +0000 (16:45 +0900)
committerJunsuChoi <junduru019@gmail.com>
Tue, 24 Aug 2021 05:09:56 +0000 (14:09 +0900)
commit79e3278049881e45d0908e710921565482bbfed3
treec5286f55f782c44b828da6051272c2871c79cb6b
parent74b22705dcc57ed2a824551fec9ec7c8acbbe2a7
[NUI] Make Unparent() in Dispose() be excuted early

- Unparent() needs to be excuted in explicit dispose() which is also same as disposing = true.
- Also it should be called prior to before the derived class of View deletes the native handle, otherwise when doing Unparent(), the child itself has empty body (native object has been deleted already).
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Common/BaseHandle.cs