[NUI] Fix wrong disposal bug
authorJiyun Yang <ji.yang@samsung.com>
Wed, 2 Apr 2025 06:48:08 +0000 (15:48 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 9 Apr 2025 02:09:46 +0000 (11:09 +0900)
Previously BackgroundExtraData did dispose its disposable members which can be also used outside of this view. So it caused problems, for example it could dispose static color member such as Color.Black

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/public/ViewProperty/BackgroundExtraData.cs

index 58cfb623e6d049c6198696ca67de7b366cfd709a..f02f5c833f44b79a7747e03d0dc02f2456e23793 100755 (executable)
@@ -80,9 +80,6 @@ namespace Tizen.NUI
             if (disposing)
             {
                 backgroundImageBorder?.Dispose();
-                CornerRadius?.Dispose();
-                CornerSquareness?.Dispose();
-                BorderlineColor?.Dispose();
             }
             disposed = true;
         }