From: JungYumin Date: Thu, 11 Apr 2013 08:17:08 +0000 (+0900) Subject: Changed the code location of _ImageUriDataFactory::GetInstacnce X-Git-Tag: 2.1b_release~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11ce42889a4921a8ce82936473d6d3ef1f1bfd3c;hp=f4a17a86e1b21b333d371f59b7920e11dec3995d;p=platform%2Fframework%2Fnative%2Fimage.git Changed the code location of _ImageUriDataFactory::GetInstacnce Change-Id: I52a0d846af65456c1cfb6561d1eb646e14a5c573 Signed-off-by: JungYumin --- diff --git a/src/FMedia_ImageImpl.cpp b/src/FMedia_ImageImpl.cpp index e01419a..fa4c8fe 100644 --- a/src/FMedia_ImageImpl.cpp +++ b/src/FMedia_ImageImpl.cpp @@ -61,16 +61,15 @@ _ImageImpl::_ImageImpl(void) _ImageImpl::~_ImageImpl(void) { - _ImageUriDataFactory *pFactory = null; - - pFactory = _ImageUriDataFactory::GetInstance(); - SysTryReturn(NID_MEDIA, pFactory != null, , GetLastResult(), "[%s] Failed to get Factory instance.", - GetErrorMessage(GetLastResult())); - if (__pUrlReqIDList.get() != null) { int num = 0; Object* pObj = null; + _ImageUriDataFactory *pFactory = null; + + pFactory = _ImageUriDataFactory::GetInstance(); + SysTryReturn(NID_MEDIA, pFactory != null, , GetLastResult(), "[%s] Failed to get Factory instance.", + GetErrorMessage(GetLastResult())); // free the memory num = __pUrlReqIDList->GetCount();