From 79295c95a1707273de25738f8b8831ac19bffa85 Mon Sep 17 00:00:00 2001 From: Umar Date: Wed, 12 Jul 2017 15:31:16 +0100 Subject: [PATCH] Revert "Ensuring that Registry.Unregister is called from the most derived class before the native handle is deleted." This reverts commit 546ce0ad1ee0ef2b2c2a79d7f186ef080bfdfec0. Change-Id: I76f65ca1f6596503d8e0897f6aa37e31aef46628 --- src/Tizen.NUI/src/internal/AccessibilityManager.cs | 4 ---- src/Tizen.NUI/src/internal/Alignment.cs | 4 ---- src/Tizen.NUI/src/internal/Application.cs | 4 ---- src/Tizen.NUI/src/internal/AsyncImageLoader.cs | 4 ---- src/Tizen.NUI/src/internal/BufferImage.cs | 4 ---- src/Tizen.NUI/src/internal/Builder.cs | 5 +---- src/Tizen.NUI/src/internal/Camera.cs | 4 ---- src/Tizen.NUI/src/internal/CustomActor.cs | 4 ---- src/Tizen.NUI/src/internal/DragAndDropDetector.cs | 4 ---- src/Tizen.NUI/src/internal/EncodedBufferImage.cs | 4 ---- src/Tizen.NUI/src/internal/FrameBuffer.cs | 4 ---- src/Tizen.NUI/src/internal/FrameBufferImage.cs | 4 ---- src/Tizen.NUI/src/internal/GaussianBlurView.cs | 4 ---- src/Tizen.NUI/src/internal/GestureDetector.cs | 4 ---- src/Tizen.NUI/src/internal/Image.cs | 4 ---- src/Tizen.NUI/src/internal/KeyInputFocusManager.cs | 4 ---- src/Tizen.NUI/src/internal/LinearConstrainer.cs | 4 ---- src/Tizen.NUI/src/internal/ObjectRegistry.cs | 4 ---- src/Tizen.NUI/src/internal/PathConstrainer.cs | 4 ---- src/Tizen.NUI/src/internal/PropertyCondition.cs | 4 ---- src/Tizen.NUI/src/internal/PropertyNotification.cs | 4 ---- src/Tizen.NUI/src/internal/RenderTaskList.cs | 4 ---- src/Tizen.NUI/src/internal/TypeRegistry.cs | 4 ---- src/Tizen.NUI/src/public/Animatable.cs | 4 ---- src/Tizen.NUI/src/public/Animation.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/Scrollable.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/TableView.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/TextEditor.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/TextField.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/VideoView.cs | 4 ---- src/Tizen.NUI/src/public/BaseComponents/View.cs | 4 ---- src/Tizen.NUI/src/public/BaseHandle.cs | 7 +++---- src/Tizen.NUI/src/public/FocusManager.cs | 4 ---- src/Tizen.NUI/src/public/Geometry.cs | 4 ---- src/Tizen.NUI/src/public/ImfManager.cs | 4 ---- src/Tizen.NUI/src/public/KeyFrames.cs | 4 ---- src/Tizen.NUI/src/public/Layer.cs | 4 ---- src/Tizen.NUI/src/public/Path.cs | 4 ---- src/Tizen.NUI/src/public/PixelData.cs | 4 ---- src/Tizen.NUI/src/public/PropertyBuffer.cs | 4 ---- src/Tizen.NUI/src/public/Renderer.cs | 4 ---- src/Tizen.NUI/src/public/Sampler.cs | 4 ---- src/Tizen.NUI/src/public/ScrollViewEffect.cs | 4 ---- src/Tizen.NUI/src/public/Shader.cs | 4 ---- src/Tizen.NUI/src/public/StyleManager.cs | 4 ---- src/Tizen.NUI/src/public/TTSPlayer.cs | 4 ---- src/Tizen.NUI/src/public/Texture.cs | 4 ---- src/Tizen.NUI/src/public/TextureSet.cs | 4 ---- src/Tizen.NUI/src/public/Timer.cs | 4 ---- src/Tizen.NUI/src/public/Touch.cs | 4 ---- src/Tizen.NUI/src/public/TransitionData.cs | 4 ---- src/Tizen.NUI/src/public/TypeInfo.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/Button.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/CheckBoxButton.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/Popup.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/ProgressBar.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/PushButton.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/RadioButton.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/ScrollBar.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/ScrollView.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/Slider.cs | 4 ---- src/Tizen.NUI/src/public/UIComponents/ToggleButton.cs | 4 ---- src/Tizen.NUI/src/public/ViewWrapper.cs | 4 ---- src/Tizen.NUI/src/public/VisualBase.cs | 4 ---- src/Tizen.NUI/src/public/VisualFactory.cs | 4 ---- src/Tizen.NUI/src/public/Window.cs | 4 ---- 67 files changed, 4 insertions(+), 268 deletions(-) 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 45ef896..ee8be82 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 16be393..23d3165 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 f6e6eba..7b896bc 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 4aa7280..19a0111 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 025832f..a36ae38 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 82dcf4d..1868cc3 100755 --- a/src/Tizen.NUI/src/public/ImfManager.cs +++ b/src/Tizen.NUI/src/public/ImfManager.cs @@ -59,10 +59,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 7888b5c..28e6247 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 e81cc2b..95cdedf 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); } -- 2.7.4