Skip to content

Commit

Permalink
[NUI][API10] Fix memory leak when DragAndDrop try to get Position
Browse files Browse the repository at this point in the history
Signed-off-by: Eunki, Hong <[email protected]>
  • Loading branch information
Eunki, Hong authored and hinohie committed Jun 10, 2024
1 parent 0efe1c2 commit 0ec69a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tizen.NUI/src/public/DragAndDrop/DragAndDrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0ec69a9

Please sign in to comment.