Remove memory leak 22/69622/1
authorSomin Kim <somin926.kim@samsung.com>
Mon, 16 May 2016 07:16:48 +0000 (16:16 +0900)
committerSomin Kim <somin926.kim@samsung.com>
Mon, 16 May 2016 07:16:48 +0000 (16:16 +0900)
Change-Id: I3c03d25d1079d79b0d6f27dbc8975766e4b66198
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
src/social-stats/LogAggregator.cpp

index ecee5e2..63dbfea 100644 (file)
@@ -65,12 +65,13 @@ void ctx::ContactLogAggregator::onExecuted(unsigned int queryId, int error, std:
                lastTime = currentTime - LOG_RETENTION_PERIOD;
 
        __getUpdatedContactLogList(lastTime, &list);
-       IF_FAIL_VOID(list);
+       IF_FAIL_CATCH(list);
 
        __removeExpiredLog();
        __insertContactLogList(list);
        __destroyContactLogList(list);
 
+CATCH:
        delete this;
 }