Fix the double-free issue
authorJaesung Ku <jaesung.ku@samsung.com>
Fri, 16 Aug 2013 14:02:07 +0000 (23:02 +0900)
committerJaesung Ku <jaesung.ku@samsung.com>
Fri, 16 Aug 2013 14:02:07 +0000 (23:02 +0900)
Change-Id: Ibc9f7a48908f1805d045c542d7259d7d3e53d2f0
Signed-off-by: Jaesung Ku <jaesung.ku@samsung.com>
src/app/FApp_AppResourceImpl.cpp

index 75779ff..94b0a09 100644 (file)
@@ -70,9 +70,6 @@ _AppResourceImpl::ReleaseInstance(const Tizen::Base::String& key)
                result r = __pLock->Acquire();
                SysTryLog(NID_APP, !IsFailed(r), "Failed to acquire mutex.");
 
-               AppResource* pAppResource = static_cast<AppResource*> (__pContainer->GetValue(key));
-               delete pAppResource;
-
                ret = __pContainer->Remove(key);
 
                r = __pLock->Release();