From 45b28fd36c24eca9adcf1f6f6ef72d60b39e5708 Mon Sep 17 00:00:00 2001 From: "ahram.suh" Date: Thu, 16 May 2013 14:26:25 +0900 Subject: [PATCH] Fixed to leak of memory Change-Id: I288615bc51426bc1086ffb8670ab8fb394a4313b --- src/IntHistoryPresentationModel.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IntHistoryPresentationModel.cpp b/src/IntHistoryPresentationModel.cpp index a325f4c..eb2c369 100644 --- a/src/IntHistoryPresentationModel.cpp +++ b/src/IntHistoryPresentationModel.cpp @@ -726,6 +726,8 @@ HistoryPresentationModel::GetHistoryCountWithTimeRange(Tizen::Base::DateTime& st r = GetHistory(0, count, *__pDataList); if (IsFailed(r)) { + delete __pDataList; + __pDataList = null; return r; } } @@ -1053,6 +1055,8 @@ HistoryPresentationModel::GetHistoryWithTimeRange(Tizen::Base::DateTime& startTi r = GetHistory(0, count, *__pDataList); if(IsFailed(r)) { + delete __pDataList; + __pDataList = null; return r; } } -- 2.7.4