From 0ec69a9635e31d6916b2a93be250a8e202504f58 Mon Sep 17 00:00:00 2001 From: "Eunki, Hong" Date: Mon, 10 Jun 2024 16:17:48 +0900 Subject: [PATCH] [NUI][API10] Fix memory leak when DragAndDrop try to get Position Signed-off-by: Eunki, Hong --- src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs index ebc2d10805a..1722382226f 100755 --- a/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs +++ b/src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs @@ -176,7 +176,7 @@ public void AddListener(View targetView, DragAndDropEventHandler callback) DragType type = (DragType)Interop.DragAndDrop.GetAction(dragEvent); DragEvent ev = new DragEvent(); global::System.IntPtr cPtr = Interop.DragAndDrop.GetPosition(dragEvent); - ev.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false); + ev.Position = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, true); if (type == DragType.Enter) {