Skip to content

Commit

Permalink
[NUI] Registry is not required at GetTouchFromPtr()
Browse files Browse the repository at this point in the history
In the case of an object created from DALi, it is created with new BaseHandle(intPtr, false).
  • Loading branch information
JoogabYun authored and hinohie committed Aug 9, 2023
1 parent 46a80b1 commit 75f0b2c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Tizen.NUI/src/public/Events/Touch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,7 @@ public DeviceSubClassType GetDeviceSubClass(uint point)

internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
{
Touch ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as Touch;
if (ret == null)
{
ret = new Touch(cPtr, false);
}

Touch ret = new Touch(cPtr, false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
Expand Down

0 comments on commit 75f0b2c

Please sign in to comment.