From: minho.sun Date: Mon, 14 Aug 2017 07:50:10 +0000 (+0900) Subject: Revert "[Tizen] Create another native handle to make sure Registry.Unregister works... X-Git-Tag: accepted/tizen/4.0/unified/20170828.223314~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a09d830e35905c0e9809c2f34accc1b7b20af1b8;p=platform%2Fcore%2Fcsapi%2Fnui.git Revert "[Tizen] Create another native handle to make sure Registry.Unregister works fine." This reverts commit 447fdcd3c6f791d15ca0f3662d140bc6a9f4f145. Change-Id: I752b5f55646e3b4121e23025428707b29f8ac60d --- diff --git a/Tizen.NUI/src/public/BaseHandle.cs b/Tizen.NUI/src/public/BaseHandle.cs index 69d904e..e0d7ecc 100755 --- a/Tizen.NUI/src/public/BaseHandle.cs +++ b/Tizen.NUI/src/public/BaseHandle.cs @@ -43,18 +43,6 @@ namespace Tizen.NUI _registerMe = swigCMemOwn = true; swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - // using copy constructor to create another native handle so Registry.Unregister works fine. - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, NDalicPINVOKE.new_BaseHandle__SWIG_2(swigCPtr)); - - // Register this instance of BaseHandle in the registry. - Registry.Register(this); - } - - internal BaseHandle(global::System.IntPtr cPtr) - { - swigCMemOwn = true; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - // Register this instance of BaseHandle in the registry. Registry.Register(this); }