[NUI] Remove callback of XamlResourceChanged in the Dispose method of BaseHandle.
authorFang Xiaohui <xiaohui.fang@samsung.com>
Thu, 24 Jun 2021 01:31:53 +0000 (09:31 +0800)
committerSangHyeon Jade Lee <dltkdgus1764@gmail.com>
Mon, 5 Jul 2021 09:51:44 +0000 (18:51 +0900)
src/Tizen.NUI/src/public/Common/BaseHandle.cs

index f68edba..17d4ddf 100755 (executable)
@@ -521,6 +521,11 @@ namespace Tizen.NUI
             }
 
             disposed = true;
+
+            if (null != Application.Current)
+            {
+                Application.Current.XamlResourceChanged -= OnResourcesChanged;
+            }
         }
 
         /// <summary>