X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FRelayoutContainer.cs;h=87e71388b953e8621799b5b3c71b50bf0d078178;hb=c3ecc722bf90238ce39641035c599e0c7880477b;hp=805cacc6ecfcc0eb91365c3b8d143d2a064c307c;hpb=e41b525990b0c18f916a1e5d15baec5a1a71bd7b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/RelayoutContainer.cs b/src/Tizen.NUI/src/public/RelayoutContainer.cs index 805cacc..87e7138 100755 --- a/src/Tizen.NUI/src/public/RelayoutContainer.cs +++ b/src/Tizen.NUI/src/public/RelayoutContainer.cs @@ -14,7 +14,7 @@ * limitations under the License. * */ - +using System.ComponentModel; namespace Tizen.NUI { @@ -25,13 +25,6 @@ namespace Tizen.NUI /// 3 public class RelayoutContainer : Disposable { - /// - /// swigCMemOwn - /// - /// 3 - protected bool swigCMemOwn; - - private global::System.Runtime.InteropServices.HandleRef swigCPtr; /// /// Adds relayout information to the container if it doesn't already exist. @@ -50,37 +43,15 @@ namespace Tizen.NUI return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } - internal RelayoutContainer(global::System.IntPtr cPtr, bool cMemoryOwn) + internal RelayoutContainer(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) { - swigCMemOwn = cMemoryOwn; - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } - /// - /// Dispose. - /// - /// 3 - protected override void Dispose(DisposeTypes type) + /// This will not be public opened. + [EditorBrowsable(EditorBrowsableState.Never)] + protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) { - if (disposed) - { - return; - } - - //Release your own unmanaged resources here. - //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; - Interop.NDalic.delete_RelayoutContainer(swigCPtr); - } - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - base.Dispose(type); + Interop.NDalic.delete_RelayoutContainer(swigCPtr); } } } \ No newline at end of file