From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Mon, 17 May 2021 01:09:09 +0000 (+0900) Subject: Update src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs X-Git-Tag: submit/tizen_6.0/20210518.005232~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77c160717cdf0712cfc9aa1a92b882424329cf9a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Update src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs yes. you are right. I use internal method. Co-authored-by: Seungkeun Lee --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs index 49a38f738..0b7d1083e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewPublicMethods.cs @@ -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(cPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; + return FindChildById(id); } }