From: subhransu mohanty Date: Wed, 14 Nov 2018 07:52:40 +0000 (+0900) Subject: lottie: Fix crash issue from last patch. X-Git-Tag: submit/tizen/20181129.071502~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F64%2F193064%2F1;p=platform%2Fcore%2Fuifw%2Flottie-player.git lottie: Fix crash issue from last patch. Change-Id: Ia8178e3454e26ae2ced8fb0bef66b1c5026f1d26 --- diff --git a/src/lottie/lottieitem.h b/src/lottie/lottieitem.h index 7cdf5fe..9a5f1dc 100644 --- a/src/lottie/lottieitem.h +++ b/src/lottie/lottieitem.h @@ -162,8 +162,8 @@ public: std::unique_ptr mCNode; ~LOTDrawable() { - if (mCNode.get()->mGradient.stopCount > 0) - free(mCNode.get()->mGradient.stopPtr); + if (mCNode && mCNode->mGradient.stopPtr) + free(mCNode->mGradient.stopPtr); } };