[NUI][API10] Fix memory leak when DragAndDrop try to get Position
authorEunki, Hong <eunkiki.hong@samsung.com>
Mon, 10 Jun 2024 07:17:48 +0000 (16:17 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 10 Jun 2024 08:00:39 +0000 (17:00 +0900)
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs

index ebc2d10..1722382 100755 (executable)
@@ -176,7 +176,7 @@ namespace Tizen.NUI
                 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)
                 {