From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Mon, 29 Jan 2018 06:01:51 +0000 (+0900) Subject: [NUI] Fix Parent crash error (#97) X-Git-Tag: 4.0.1-preview1-00069^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=adb636bd7ce4547374b6451672efb27ca8dc6f7e;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix Parent crash error (#97) --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index efe00e7..15d421f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -4328,10 +4328,11 @@ namespace Tizen.NUI.BaseComponents { View ret; IntPtr cPtr = NDalicPINVOKE.Actor_GetParent(swigCPtr); - HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle); - NDalicPINVOKE.delete_BaseHandle(CPtr); - CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); + BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(cPtr); + //HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); + //BaseHandle basehandle = Registry.GetManagedBaseHandleFromNativePtr(CPtr.Handle); + //NDalicPINVOKE.delete_BaseHandle(CPtr); + //CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); if (basehandle is Layer) {