Update src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 17 May 2021 01:09:09 +0000 (10:09 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 17 May 2021 09:18:32 +0000 (18:18 +0900)
yes. you are right. I use internal method.

Co-authored-by: Seungkeun Lee <sngn.lee@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs

index 49a38f7..0b7d108 100755 (executable)
@@ -642,11 +642,7 @@ namespace Tizen.NUI.BaseComponents
         [EditorBrowsable(EditorBrowsableState.Never)]
         public View FindDescendantByID(uint id)
         {
-            //to fix memory leak issue, match the handle count with native side.
-            IntPtr cPtr = Interop.Actor.Actor_FindChildById(swigCPtr, id);
-            View ret = this.GetInstanceSafely<View>(cPtr);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-            return ret;
+            return FindChildById(id);
         }
 
     }