[NUI][API11] Fix some memory leak codes what already fixed at API12
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 19 Jan 2024 01:28:11 +0000 (10:28 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 18 Mar 2024 08:02:17 +0000 (17:02 +0900)
commit697bddd5158f174f21f5920a2427da39e517105e
treee1f16dab29544dcb95577c26a8cde9af93cbbcfa
parent7a71647a88147eb1619f15651bbae01e12812a52
[NUI][API11] 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 4 different patches.

---

Fix some incorrect implements when we get Texture relative items

Since now we have a unified pattern to avoid memory leak problem
between NUI and Native side handle count problem,
Let we change some mis-implementated codes relative with Texture.

(Follow PR #5892)

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)
12 files changed:
src/Tizen.NUI.Wearable/src/public/Title.cs
src/Tizen.NUI/src/internal/Common/FrameBuffer.cs
src/Tizen.NUI/src/internal/FrameBroker/FrameBrokerBase.cs
src/Tizen.NUI/src/internal/Transition/TransitionSet.cs
src/Tizen.NUI/src/public/BaseComponents/DirectRenderingGLView.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityWrappers.cs
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
src/Tizen.NUI/src/public/Common/BaseHandle.cs
src/Tizen.NUI/src/public/Rendering/Renderer.cs
src/Tizen.NUI/src/public/Rendering/TextureSet.cs
src/Tizen.NUI/src/public/Rendering/VertexBuffer.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/DisposeTest.cs