From: Eunki, Hong Date: Tue, 11 Jun 2024 15:41:43 +0000 (+0900) Subject: [NUI] Fix worker thread handle removal issue X-Git-Tag: submit/tizen/20240619.023313~1^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34d59db8618ac04ad949f00a4ad47e3c2a8c209f;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix worker thread handle removal issue Since `ControlHandle` could be deleted at GC thread, we should use DisposeQueue here. Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs index 029b5a61c..aa6f91a5f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs @@ -209,10 +209,15 @@ namespace Tizen.NUI.BaseComponents } protected override bool ReleaseHandle() + { + DisposeQueue.Instance.Add(this); + return true; + } + + public void Dispose() { Interop.View.DeleteControlHandleView(handle); this.SetHandle(IntPtr.Zero); - return true; } }