[NUI] Fix LottieAnimationView not to reference disposed delegate
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Fri, 29 Mar 2024 03:49:57 +0000 (12:49 +0900)
committerhuiyu <35286162+huiyueun@users.noreply.github.com>
Wed, 3 Apr 2024 07:01:49 +0000 (16:01 +0900)
commitc082e8ffa4fc6cbeeed2f99331df3528caf31845
treea120d9f2a6683bf2dbc2991b0ef1b88f9d77a903
parent72fed05afaebe01653bf934ad3509b30f59f8314
[NUI] Fix LottieAnimationView not to reference disposed delegate

Delegate rootCallback of LottieAnimationView is called by multi threads
for lottie dynamic properties.

This causes the following issues.
- Delegate rootCallback of disposed LottieAnimationView can be
  referenced.
- Local variables in RootCallback is disposed by multi threads.

To resolve the above issues, the followings are done.
- Delegate rootCallback of LottieAnimationView is changed to be static.
- Local variables in RootCallback is not disposed.
src/Tizen.NUI/src/public/BaseComponents/LottieAnimationView.cs