Revert "[Tizen] Create another native handle to make sure Registry.Unregister works... 82/144082/1
authorminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 07:50:10 +0000 (16:50 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 07:50:12 +0000 (16:50 +0900)
This reverts commit 447fdcd3c6f791d15ca0f3662d140bc6a9f4f145.

Change-Id: I752b5f55646e3b4121e23025428707b29f8ac60d

Tizen.NUI/src/public/BaseHandle.cs

index 69d904e..e0d7ecc 100755 (executable)
@@ -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);
         }