From: dongsug.song Date: Tue, 25 Jul 2017 01:40:00 +0000 (+0900) Subject: Revert "[Tizen] Ensuring that Registry.Unregister is called from the most derived... X-Git-Tag: preview1-00180^2~177 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5ae7ffae426a6cfb3230ef84ca5ee5bbe516526a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Revert "[Tizen] Ensuring that Registry.Unregister is called from the most derived class before the native handle is deleted." This reverts commit 585160f90671a22cfc754f0fced77d9d24a882e1. Change-Id: I58de5819d90588c48e4cc5b0cb78ab1796a513bc --- diff --git a/src/Tizen.NUI/src/internal/AccessibilityManager.cs b/src/Tizen.NUI/src/internal/AccessibilityManager.cs index 969b8ee..2fc7605 100755 --- a/src/Tizen.NUI/src/internal/AccessibilityManager.cs +++ b/src/Tizen.NUI/src/internal/AccessibilityManager.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_AccessibilityManager(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/Alignment.cs b/src/Tizen.NUI/src/internal/Alignment.cs index d2f2199..e64520e 100755 --- a/src/Tizen.NUI/src/internal/Alignment.cs +++ b/src/Tizen.NUI/src/internal/Alignment.cs @@ -57,10 +57,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Alignment(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/Application.cs b/src/Tizen.NUI/src/internal/Application.cs index 4e450d7..4e68bfe 100755 --- a/src/Tizen.NUI/src/internal/Application.cs +++ b/src/Tizen.NUI/src/internal/Application.cs @@ -351,10 +351,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Application(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/AsyncImageLoader.cs b/src/Tizen.NUI/src/internal/AsyncImageLoader.cs index 0e90c9d..f3f122d 100755 --- a/src/Tizen.NUI/src/internal/AsyncImageLoader.cs +++ b/src/Tizen.NUI/src/internal/AsyncImageLoader.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_AsyncImageLoader(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/BufferImage.cs b/src/Tizen.NUI/src/internal/BufferImage.cs index c20c32b..0db41cf 100755 --- a/src/Tizen.NUI/src/internal/BufferImage.cs +++ b/src/Tizen.NUI/src/internal/BufferImage.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_BufferImage(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/Builder.cs b/src/Tizen.NUI/src/internal/Builder.cs index 8e8d2f0..b826f65 100755 --- a/src/Tizen.NUI/src/internal/Builder.cs +++ b/src/Tizen.NUI/src/internal/Builder.cs @@ -55,15 +55,12 @@ namespace Tizen.NUI //You should not access any managed member here except static instance. //because the execution order of Finalizes is non-deterministic. + if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Builder(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/Camera.cs b/src/Tizen.NUI/src/internal/Camera.cs index 4bea2ed..7f98d94 100755 --- a/src/Tizen.NUI/src/internal/Camera.cs +++ b/src/Tizen.NUI/src/internal/Camera.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_CameraActor(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/CustomActor.cs b/src/Tizen.NUI/src/internal/CustomActor.cs index 6855c2d..8bea2d1 100755 --- a/src/Tizen.NUI/src/internal/CustomActor.cs +++ b/src/Tizen.NUI/src/internal/CustomActor.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_CustomActor(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/DragAndDropDetector.cs b/src/Tizen.NUI/src/internal/DragAndDropDetector.cs index 886ecfb..5861ba3 100755 --- a/src/Tizen.NUI/src/internal/DragAndDropDetector.cs +++ b/src/Tizen.NUI/src/internal/DragAndDropDetector.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_DragAndDropDetector(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/EncodedBufferImage.cs b/src/Tizen.NUI/src/internal/EncodedBufferImage.cs index 49f7017..6f801c7 100755 --- a/src/Tizen.NUI/src/internal/EncodedBufferImage.cs +++ b/src/Tizen.NUI/src/internal/EncodedBufferImage.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_EncodedBufferImage(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/FrameBuffer.cs b/src/Tizen.NUI/src/internal/FrameBuffer.cs index 5673499..aba063a 100755 --- a/src/Tizen.NUI/src/internal/FrameBuffer.cs +++ b/src/Tizen.NUI/src/internal/FrameBuffer.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_FrameBuffer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/FrameBufferImage.cs b/src/Tizen.NUI/src/internal/FrameBufferImage.cs index 387d3aa..3646b8a 100755 --- a/src/Tizen.NUI/src/internal/FrameBufferImage.cs +++ b/src/Tizen.NUI/src/internal/FrameBufferImage.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_FrameBufferImage(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/GaussianBlurView.cs b/src/Tizen.NUI/src/internal/GaussianBlurView.cs index a19ae3e..b9e2cdd 100755 --- a/src/Tizen.NUI/src/internal/GaussianBlurView.cs +++ b/src/Tizen.NUI/src/internal/GaussianBlurView.cs @@ -61,10 +61,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_GaussianBlurView(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/GestureDetector.cs b/src/Tizen.NUI/src/internal/GestureDetector.cs index 8744b13..faf27a3 100755 --- a/src/Tizen.NUI/src/internal/GestureDetector.cs +++ b/src/Tizen.NUI/src/internal/GestureDetector.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_GestureDetector(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/Image.cs b/src/Tizen.NUI/src/internal/Image.cs index 408fb6b..af70862 100755 --- a/src/Tizen.NUI/src/internal/Image.cs +++ b/src/Tizen.NUI/src/internal/Image.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Image(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs b/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs index 624ec10..dd6f093 100755 --- a/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs +++ b/src/Tizen.NUI/src/internal/KeyInputFocusManager.cs @@ -57,10 +57,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_KeyInputFocusManager(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/LinearConstrainer.cs b/src/Tizen.NUI/src/internal/LinearConstrainer.cs index 009eba6..6004eb0 100755 --- a/src/Tizen.NUI/src/internal/LinearConstrainer.cs +++ b/src/Tizen.NUI/src/internal/LinearConstrainer.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_LinearConstrainer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/ObjectRegistry.cs b/src/Tizen.NUI/src/internal/ObjectRegistry.cs index 3e2f99a..5051c31 100755 --- a/src/Tizen.NUI/src/internal/ObjectRegistry.cs +++ b/src/Tizen.NUI/src/internal/ObjectRegistry.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ObjectRegistry(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/PathConstrainer.cs b/src/Tizen.NUI/src/internal/PathConstrainer.cs index e46ca02..9abb448 100755 --- a/src/Tizen.NUI/src/internal/PathConstrainer.cs +++ b/src/Tizen.NUI/src/internal/PathConstrainer.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PathConstrainer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/PropertyCondition.cs b/src/Tizen.NUI/src/internal/PropertyCondition.cs index d6673d6..278349f 100755 --- a/src/Tizen.NUI/src/internal/PropertyCondition.cs +++ b/src/Tizen.NUI/src/internal/PropertyCondition.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PropertyCondition(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/PropertyNotification.cs b/src/Tizen.NUI/src/internal/PropertyNotification.cs index 0610108..d084ca1 100755 --- a/src/Tizen.NUI/src/internal/PropertyNotification.cs +++ b/src/Tizen.NUI/src/internal/PropertyNotification.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PropertyNotification(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/RenderTaskList.cs b/src/Tizen.NUI/src/internal/RenderTaskList.cs index 11facae..250ba24 100755 --- a/src/Tizen.NUI/src/internal/RenderTaskList.cs +++ b/src/Tizen.NUI/src/internal/RenderTaskList.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_RenderTaskList(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/internal/TypeRegistry.cs b/src/Tizen.NUI/src/internal/TypeRegistry.cs index 647d924..2ac7953 100755 --- a/src/Tizen.NUI/src/internal/TypeRegistry.cs +++ b/src/Tizen.NUI/src/internal/TypeRegistry.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TypeRegistry(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Animatable.cs b/src/Tizen.NUI/src/public/Animatable.cs index a718fb8..578477f 100755 --- a/src/Tizen.NUI/src/public/Animatable.cs +++ b/src/Tizen.NUI/src/public/Animatable.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Handle(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index 451cffe..d999316 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -70,10 +70,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Animation(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs index 291626d..37b8cfd 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs @@ -58,10 +58,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Scrollable(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs index b8e3015..5744fc0 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TableView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TableView.cs @@ -62,10 +62,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TableView(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs index a651298..6900bc4 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs @@ -63,10 +63,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TextEditor(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs index 5703250..7bb8f3f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextField.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextField.cs @@ -64,10 +64,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TextField(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index eaf3973..bc794d7 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -63,10 +63,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TextLabel(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs index bf20336..7c380b9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/VideoView.cs @@ -60,10 +60,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_VideoView(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 4800111..100800a 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -64,10 +64,6 @@ namespace Tizen.NUI.BaseComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_View(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/BaseHandle.cs b/src/Tizen.NUI/src/public/BaseHandle.cs index 848b995..8ac41e0 100755 --- a/src/Tizen.NUI/src/public/BaseHandle.cs +++ b/src/Tizen.NUI/src/public/BaseHandle.cs @@ -88,15 +88,14 @@ namespace Tizen.NUI //You should not access any managed member here except static instance. //because the execution order of Finalizes is non-deterministic. + //Unreference this instance from Registry. + Registry.Unregister(this); + if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_BaseHandle(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/FocusManager.cs b/src/Tizen.NUI/src/public/FocusManager.cs index f93a471..8eb6116 100755 --- a/src/Tizen.NUI/src/public/FocusManager.cs +++ b/src/Tizen.NUI/src/public/FocusManager.cs @@ -70,10 +70,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicManualPINVOKE.delete_FocusManager(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Geometry.cs b/src/Tizen.NUI/src/public/Geometry.cs index 2fc19a5..4752be2 100755 --- a/src/Tizen.NUI/src/public/Geometry.cs +++ b/src/Tizen.NUI/src/public/Geometry.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Geometry(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/ImfManager.cs b/src/Tizen.NUI/src/public/ImfManager.cs index 34122ea..a1234e4 100755 --- a/src/Tizen.NUI/src/public/ImfManager.cs +++ b/src/Tizen.NUI/src/public/ImfManager.cs @@ -58,10 +58,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicManualPINVOKE.delete_ImfManager(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/KeyFrames.cs b/src/Tizen.NUI/src/public/KeyFrames.cs index 16382da..8b58ce5 100755 --- a/src/Tizen.NUI/src/public/KeyFrames.cs +++ b/src/Tizen.NUI/src/public/KeyFrames.cs @@ -60,10 +60,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_KeyFrames(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Layer.cs b/src/Tizen.NUI/src/public/Layer.cs index 6bef8bf..84daa09 100755 --- a/src/Tizen.NUI/src/public/Layer.cs +++ b/src/Tizen.NUI/src/public/Layer.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Layer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Path.cs b/src/Tizen.NUI/src/public/Path.cs index 603eb14..4090eaa 100755 --- a/src/Tizen.NUI/src/public/Path.cs +++ b/src/Tizen.NUI/src/public/Path.cs @@ -60,10 +60,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Path(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/PixelData.cs b/src/Tizen.NUI/src/public/PixelData.cs index 5837ebf..0b8f7a8 100755 --- a/src/Tizen.NUI/src/public/PixelData.cs +++ b/src/Tizen.NUI/src/public/PixelData.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PixelData(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/PropertyBuffer.cs b/src/Tizen.NUI/src/public/PropertyBuffer.cs index fd8b66e..bbbb2b8 100755 --- a/src/Tizen.NUI/src/public/PropertyBuffer.cs +++ b/src/Tizen.NUI/src/public/PropertyBuffer.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PropertyBuffer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Renderer.cs b/src/Tizen.NUI/src/public/Renderer.cs index 9db89a9..d875000 100755 --- a/src/Tizen.NUI/src/public/Renderer.cs +++ b/src/Tizen.NUI/src/public/Renderer.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Renderer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Sampler.cs b/src/Tizen.NUI/src/public/Sampler.cs index bccaec9..c1ed5ed 100755 --- a/src/Tizen.NUI/src/public/Sampler.cs +++ b/src/Tizen.NUI/src/public/Sampler.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Sampler(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/ScrollViewEffect.cs b/src/Tizen.NUI/src/public/ScrollViewEffect.cs index bfb887a..89d9762 100755 --- a/src/Tizen.NUI/src/public/ScrollViewEffect.cs +++ b/src/Tizen.NUI/src/public/ScrollViewEffect.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ScrollViewEffect(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Shader.cs b/src/Tizen.NUI/src/public/Shader.cs index 34cba58..317e9ce 100755 --- a/src/Tizen.NUI/src/public/Shader.cs +++ b/src/Tizen.NUI/src/public/Shader.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Shader(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/StyleManager.cs b/src/Tizen.NUI/src/public/StyleManager.cs index 441f4ba..960b5f4 100755 --- a/src/Tizen.NUI/src/public/StyleManager.cs +++ b/src/Tizen.NUI/src/public/StyleManager.cs @@ -68,10 +68,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_StyleManager(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/TTSPlayer.cs b/src/Tizen.NUI/src/public/TTSPlayer.cs index 4acfe54..ec2b788 100755 --- a/src/Tizen.NUI/src/public/TTSPlayer.cs +++ b/src/Tizen.NUI/src/public/TTSPlayer.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicManualPINVOKE.delete_TtsPlayer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Texture.cs b/src/Tizen.NUI/src/public/Texture.cs index 9f58433..2503ca5 100755 --- a/src/Tizen.NUI/src/public/Texture.cs +++ b/src/Tizen.NUI/src/public/Texture.cs @@ -56,10 +56,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Texture(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/TextureSet.cs b/src/Tizen.NUI/src/public/TextureSet.cs index f2a09ee..c7ee739 100755 --- a/src/Tizen.NUI/src/public/TextureSet.cs +++ b/src/Tizen.NUI/src/public/TextureSet.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TextureSet(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Timer.cs b/src/Tizen.NUI/src/public/Timer.cs index 14ceeda..8229740 100755 --- a/src/Tizen.NUI/src/public/Timer.cs +++ b/src/Tizen.NUI/src/public/Timer.cs @@ -67,10 +67,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Timer(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Touch.cs b/src/Tizen.NUI/src/public/Touch.cs index 601f58f..a547720 100755 --- a/src/Tizen.NUI/src/public/Touch.cs +++ b/src/Tizen.NUI/src/public/Touch.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Touch(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/TransitionData.cs b/src/Tizen.NUI/src/public/TransitionData.cs index 0a86cc2..b3611a0 100755 --- a/src/Tizen.NUI/src/public/TransitionData.cs +++ b/src/Tizen.NUI/src/public/TransitionData.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TransitionData(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/TypeInfo.cs b/src/Tizen.NUI/src/public/TypeInfo.cs index 7773fa4..0583ffe 100755 --- a/src/Tizen.NUI/src/public/TypeInfo.cs +++ b/src/Tizen.NUI/src/public/TypeInfo.cs @@ -55,10 +55,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_TypeInfo(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/Button.cs b/src/Tizen.NUI/src/public/UIComponents/Button.cs index 430471f..a67858d 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Button.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Button.cs @@ -77,10 +77,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Button(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/CheckBoxButton.cs b/src/Tizen.NUI/src/public/UIComponents/CheckBoxButton.cs index ea094b8..e2ef38a 100755 --- a/src/Tizen.NUI/src/public/UIComponents/CheckBoxButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/CheckBoxButton.cs @@ -68,10 +68,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_CheckBoxButton(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/Popup.cs b/src/Tizen.NUI/src/public/UIComponents/Popup.cs index 395ab74..1a933a4 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Popup.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Popup.cs @@ -63,10 +63,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Popup(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs b/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs index 6ec9d15..978e777 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs @@ -65,10 +65,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ProgressBar(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs index 8352dcd..39bd34c 100755 --- a/src/Tizen.NUI/src/public/UIComponents/PushButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/PushButton.cs @@ -63,10 +63,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_PushButton(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/RadioButton.cs b/src/Tizen.NUI/src/public/UIComponents/RadioButton.cs index a6babcf..d082422 100755 --- a/src/Tizen.NUI/src/public/UIComponents/RadioButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/RadioButton.cs @@ -71,10 +71,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_RadioButton(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs index 6b02b69..d1d619f 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs @@ -65,10 +65,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ScrollBar(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs b/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs index c84a51f..b9bb7ea 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ScrollView.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ScrollView(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/Slider.cs b/src/Tizen.NUI/src/public/UIComponents/Slider.cs index 258fb58..6783fe0 100755 --- a/src/Tizen.NUI/src/public/UIComponents/Slider.cs +++ b/src/Tizen.NUI/src/public/UIComponents/Slider.cs @@ -65,10 +65,6 @@ namespace Tizen.NUI.UIComponents if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Slider(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs b/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs index 62f0890..fe3eef4 100755 --- a/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs +++ b/src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs @@ -57,10 +57,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_ToggleButton(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/ViewWrapper.cs b/src/Tizen.NUI/src/public/ViewWrapper.cs index a89fcd3..f931357 100755 --- a/src/Tizen.NUI/src/public/ViewWrapper.cs +++ b/src/Tizen.NUI/src/public/ViewWrapper.cs @@ -58,10 +58,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicManualPINVOKE.delete_ViewWrapper(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/VisualBase.cs b/src/Tizen.NUI/src/public/VisualBase.cs index ffb947a..42311b1 100755 --- a/src/Tizen.NUI/src/public/VisualBase.cs +++ b/src/Tizen.NUI/src/public/VisualBase.cs @@ -59,10 +59,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_VisualBase(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/VisualFactory.cs b/src/Tizen.NUI/src/public/VisualFactory.cs index ae2a6e8..9c6e7c2 100755 --- a/src/Tizen.NUI/src/public/VisualFactory.cs +++ b/src/Tizen.NUI/src/public/VisualFactory.cs @@ -57,10 +57,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_VisualFactory(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); diff --git a/src/Tizen.NUI/src/public/Window.cs b/src/Tizen.NUI/src/public/Window.cs index 70039ec..7a610fd 100755 --- a/src/Tizen.NUI/src/public/Window.cs +++ b/src/Tizen.NUI/src/public/Window.cs @@ -70,10 +70,6 @@ namespace Tizen.NUI if (swigCMemOwn) { swigCMemOwn = false; - - //Unreference this instance from Registry. - Registry.Unregister(this); - NDalicPINVOKE.delete_Window(swigCPtr); NDalicPINVOKE.delete_Stage(stageCPtr); }