From: Eugene Kurzberg Date: Mon, 24 Oct 2016 10:05:59 +0000 (+0300) Subject: Fixed memory leak in DataProvider. X-Git-Tag: submit/tizen/20161024.134930^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a21203e160cbf3640a78f129a602b3c6dfb4b6a0;p=profile%2Fmobile%2Fapps%2Fnative%2Fphone-contacts.git Fixed memory leak in DataProvider. Change-Id: I229e90fbbe667f4de149488e2148a79254396600 Signed-off-by: Eugene Kurzberg --- diff --git a/lib-apps-common/src/Model2/DataProvider.cpp b/lib-apps-common/src/Model2/DataProvider.cpp index 145eb49..c75201d 100644 --- a/lib-apps-common/src/Model2/DataProvider.cpp +++ b/lib-apps-common/src/Model2/DataProvider.cpp @@ -147,6 +147,7 @@ void DataProvider::finishUpdate() m_OnInserted(**it); } } else if (changeType == ChangeDelete) { + delete *it; it = m_DataList.erase(it); continue; }