Merge "[NUI] Fix WidgetView dispose issue" API4_5 preview1-00345 preview1-00346
authordongsug song <dongsug.song@samsung.com>
Wed, 25 Oct 2017 09:02:40 +0000 (09:02 +0000)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Wed, 25 Oct 2017 09:02:40 +0000 (09:02 +0000)
1  2 
src/Tizen.NUI/src/public/Widget.cs

index b6781ee,35fed51..37a53da
mode 100644,100755..100644
   *
   */
  using System;
 +using System.ComponentModel;
  using System.Runtime.InteropServices;
- using Tizen.Applications;
  
  namespace Tizen.NUI
  {
      /// <summary>
      /// Widget object should be created by WidgetApplication.
      /// </summary>
 +    /// This is an experimental feature. We do recommend not to use it.
 +    [EditorBrowsable(EditorBrowsableState.Never)]
      public class Widget : BaseHandle
      {
          private global::System.Runtime.InteropServices.HandleRef swigCPtr;
              //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 (_createCallback != null)
+             {
+                 this.CreateSignal().Disconnect(_createCallback);
+             }
+             if (_pauseCallback != null)
+             {
+                 this.PauseSignal().Disconnect(_pauseCallback);
+             }
+             if (_resizeCallback != null)
+             {
+                 this.ResizeSignal().Disconnect(_resizeCallback);
+             }
+             if (_resumeCallback != null)
+             {
+                 this.ResumeSignal().Disconnect(_resumeCallback);
+             }
+             if (_terminateCallback != null)
+             {
+                 this.TerminateSignal().Disconnect(_terminateCallback);
+             }
+             if (_updateCallback != null)
+             {
+                 this.UpdateSignal().Disconnect(_updateCallback);
+             }
  
              if (swigCPtr.Handle != global::System.IntPtr.Zero)
              {
              Resume = 4
          }
      }
- }
+ }