[NUI] Fix Registry's memory leak (#2099)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 19 Oct 2020 05:07:56 +0000 (14:07 +0900)
committerGitHub <noreply@github.com>
Mon, 19 Oct 2020 05:07:56 +0000 (14:07 +0900)
commit024b0479a7aebf47279e1b4d63ddc2649a54a83e
treec65cc7b57a466a0354dde831a4551edffb3e098f
parente50af9033c74c1279861d4124cb8ab90b74fe6db
[NUI] Fix Registry's memory leak (#2099)

- new RefObject(xxx, false), this causes unhandled RefObject in dali.
- "cMemoryOwn = false" means that this doesn't care about dali native's object and will not delete native object when nui dispose.
- currently "ViewAddedEventToWindow" is not used and this will be fixed by using Event subscribing pattern soon.
- remove "internal BaseHandle.GetObjectPtr()" method which is not used anymore.
src/Tizen.NUI/src/internal/Registry.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewInternal.cs
src/Tizen.NUI/src/public/BaseHandle.cs
test/Tizen.NUI.Tests/Tizen.NUI.TCT/Tizen.NUI.Components.Tests.sln [deleted file]
test/Tizen.NUI.Tests/Tizen.NUI.TCT/testcase/ViewMemoryLeakTest.cs [new file with mode: 0755]