Fix some build errors.
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / BaseObject.cs
index 6e00495..e877b48 100755 (executable)
@@ -22,6 +22,12 @@ namespace Tizen.NUI {
   }
 
   public override void Dispose() {
+
+    if (!Stage.IsInstalled()) {
+      DisposeQueue.Instance.Add(this);
+      return;
+    }
+
     lock(this) {
       if (swigCPtr.Handle != global::System.IntPtr.Zero) {
         if (swigCMemOwn) {