From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Fri, 14 Feb 2020 01:32:25 +0000 (+0900) Subject: [NUI] Fix TCT crash issue (#1407) X-Git-Tag: submit/tizen_5.5_tv/20200215.005159~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4a45f4dd735faa76589f52e76647b5da36b6d2e4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix TCT crash issue (#1407) --- diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index f4826b07d..891a9cd01 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -1290,24 +1290,25 @@ namespace Tizen.NUI return; } - if (_finishedCallbackOfNative != null) + if (_animationFinishedEventHandler != null) { FinishedSignal().Disconnect(_finishedCallbackOfNative); + _animationFinishedEventHandler = null; } if (_animationProgressReachedEventCallback != null) { ProgressReachedSignal().Disconnect(_animationProgressReachedEventCallback); + _animationProgressReachedEventCallback = null; } //Release your own unmanaged resources here. //You should not access any managed member here except static instance. //because the execution order of Finalizes is non-deterministic. - if (swigCPtr.Handle != global::System.IntPtr.Zero) { - if (swigCMemOwn) + if (swigCMemOwn && this.HasBody()) { swigCMemOwn = false; Interop.Animation.delete_Animation(swigCPtr);