Store weak reference of C# object in the view registry to make the object garbage...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / manual / csharp / View.cs
index 8589e70..b48f779 100644 (file)
@@ -36,6 +36,9 @@ public class View : CustomActor {
 
   ~View() {
     DisposeQueue.Instance.Add(this);
 
   ~View() {
     DisposeQueue.Instance.Add(this);
+
+    // Unregister this instance of view from the view registry.
+    ViewRegistry.UnregisterView(this);
   }
 
   public override void Dispose() {
   }
 
   public override void Dispose() {