[NUI] Fix Parent crash error (#97) 4.0.1-preview1-00069
authorhuiyueun <35286162+huiyueun@users.noreply.github.com>
Mon, 29 Jan 2018 06:01:51 +0000 (15:01 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 29 Jan 2018 06:01:51 +0000 (15:01 +0900)
src/Tizen.NUI/src/public/BaseComponents/View.cs

index efe00e7..15d421f 100755 (executable)
@@ -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)
                 {