manual nui merge 0.2.38
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / Popup.cs
old mode 100755 (executable)
new mode 100644 (file)
similarity index 99%
rename from Tizen.NUI/src/public/UIComponents/Popup.cs
rename to Tizen.NUI/src/internal/Popup.cs
index 7f39117..21e8a60
@@ -333,11 +333,16 @@ namespace Tizen.NUI.UIComponents
 
             ~Property()
             {
-                Dispose();
+                DisposeQueue.Instance.Add(this);
             }
 
             public virtual void Dispose()
             {
+                if (!Window.IsInstalled()) {
+                    DisposeQueue.Instance.Add(this);
+                    return;
+                }
+
                 lock (this)
                 {
                     if (swigCPtr.Handle != global::System.IntPtr.Zero)