[NUI][API10] Fix some memory leak codes what already fixed at API12
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 19 Jan 2024 04:04:36 +0000 (13:04 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 18 Mar 2024 08:02:29 +0000 (17:02 +0900)
commite0157613b7ebdefc112ab288d7587e7dff7b54a4
tree28c6b952f0945dad6ff4f870bfe4050fc6f76392
parentb3ed6900b14812feabb670e45562ec1ed2616c23
[NUI][API10] Fix some memory leak codes what already fixed at API12

Let we backport some minor memory leak resolve PR what we already merged.

This PR squash 3 different patches.

---

Add some remarks at BaseHandle class about Dispose

(Follow PR #5893)

Resolve memory leak for DisposeTest sample

There was leak issue since we don't call FreeHGlobal after AllocHGlobal.

And also, let we Dispose Renderer / Geometry / Shader / TextureSet what NUI create.
Those classes memory might give confuse when we test the memory.

(Follow PR #5895)

Call Mashal.FreeHGlobal() what we allocated

Let we free allocated heap memory by Mashal.

It might cause memory leak issue if user try to use VertexBuffer.

And also, let we also fix FrameBrokerBase implementation
that might be the guideline who want to use custom Geometry class.

(Follow PR #5902)
src/Tizen.NUI.Wearable/src/public/Title.cs
src/Tizen.NUI/src/internal/FrameBroker/FrameBrokerBase.cs
src/Tizen.NUI/src/public/BaseComponents/DirectRenderingGLView.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityWrappers.cs
src/Tizen.NUI/src/public/Common/BaseHandle.cs
src/Tizen.NUI/src/public/Rendering/VertexBuffer.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/DisposeTest.cs