[NUI] Call RemoveWidget when WidgetView is disposed
authortscholb <scholb.kim@samsung.com>
Thu, 7 Oct 2021 03:09:37 +0000 (12:09 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 9 Nov 2021 05:57:53 +0000 (14:57 +0900)
when WidgetView is disposed, RemoveWidget must be called.
so i added this patch

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

index 7d978b2..708eb8b 100755 (executable)
@@ -826,6 +826,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.