Changed the code location of _ImageUriDataFactory::GetInstacnce
authorJungYumin <y_m.jung@samsung.com>
Thu, 11 Apr 2013 08:17:08 +0000 (17:17 +0900)
committerJungYumin <y_m.jung@samsung.com>
Thu, 11 Apr 2013 08:17:45 +0000 (17:17 +0900)
Change-Id: I52a0d846af65456c1cfb6561d1eb646e14a5c573
Signed-off-by: JungYumin <y_m.jung@samsung.com>
src/FMedia_ImageImpl.cpp

index e01419a..fa4c8fe 100644 (file)
@@ -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();