[NUI] Call RemoveWidget when WidgetView is disposed
authortscholb <scholb.kim@samsung.com>
Mon, 1 Nov 2021 06:55:57 +0000 (15:55 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Mon, 1 Nov 2021 07:03:01 +0000 (16:03 +0900)
when WidgetView is disposed, RemoveWidget must be called.
so i added this patch

src/Tizen.NUI/src/public/Widget/WidgetView.cs

index 44fc35f..a36e247 100755 (executable)
@@ -639,6 +639,9 @@ namespace Tizen.NUI
                 return;
             }
 
+            //Remove Widget from WidgetViewManager
+            WidgetViewManager.Instance.RemoveWidget(this);
+
             //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.