From 11ce42889a4921a8ce82936473d6d3ef1f1bfd3c Mon Sep 17 00:00:00 2001 From: JungYumin Date: Thu, 11 Apr 2013 17:17:08 +0900 Subject: [PATCH 1/1] Changed the code location of _ImageUriDataFactory::GetInstacnce Change-Id: I52a0d846af65456c1cfb6561d1eb646e14a5c573 Signed-off-by: JungYumin --- src/FMedia_ImageImpl.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) 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(); -- 2.7.4