From adb636bd7ce4547374b6451672efb27ca8dc6f7e Mon Sep 17 00:00:00 2001 From: huiyueun <35286162+huiyueun@users.noreply.github.com> Date: Mon, 29 Jan 2018 15:01:51 +0900 Subject: [PATCH] [NUI] Fix Parent crash error (#97) --- src/Tizen.NUI/src/public/BaseComponents/View.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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) { -- 2.7.4