From: mamata pattanaik Date: Tue, 2 Apr 2013 06:35:29 +0000 (+0530) Subject: Correcting prevent defect in _ImageImpl. X-Git-Tag: 2.1b_release~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;ds=sidebyside;h=d4854d694bff4250569e66b46b7b245fc42463f3;p=platform%2Fframework%2Fnative%2Fimage.git Correcting prevent defect in _ImageImpl. Change-Id: I4bc9fb129710858e47c62e1f4c0c489c4a445bdf Signed-off-by: mamata pattanaik --- diff --git a/src/FMedia_ImageImpl.cpp b/src/FMedia_ImageImpl.cpp index 87a2e8c..e01419a 100644 --- a/src/FMedia_ImageImpl.cpp +++ b/src/FMedia_ImageImpl.cpp @@ -80,6 +80,11 @@ _ImageImpl::~_ImageImpl(void) if (pObj != null) { Integer *pValue = dynamic_cast(pObj); + if (pValue == null) + { + continue; + } + RequestId reqId = (RequestId)(pValue->ToInt()); pFactory->Remove(reqId);