From: Fang Xiaohui Date: Thu, 24 Jun 2021 01:31:53 +0000 (+0800) Subject: [NUI] Remove callback of XamlResourceChanged in the Dispose method of BaseHandle. X-Git-Tag: accepted/tizen/unified/20231205.024657~1724 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a27fe8ef0d689ca39e9ad8d206cdd1a3b2256bf;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Remove callback of XamlResourceChanged in the Dispose method of BaseHandle. --- diff --git a/src/Tizen.NUI/src/public/Common/BaseHandle.cs b/src/Tizen.NUI/src/public/Common/BaseHandle.cs index f68edba..17d4ddf 100755 --- a/src/Tizen.NUI/src/public/Common/BaseHandle.cs +++ b/src/Tizen.NUI/src/public/Common/BaseHandle.cs @@ -521,6 +521,11 @@ namespace Tizen.NUI } disposed = true; + + if (null != Application.Current) + { + Application.Current.XamlResourceChanged -= OnResourcesChanged; + } } ///