From a7bd6830e26d798068970684754fa23894d9f7c2 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 15 Dec 2016 21:27:42 +0000 Subject: coverity#1397206 Resource leak Change-Id: I497388a353425811ff18d9b1937ca536b562ddfc --- sc/source/ui/docshell/dataprovider.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/docshell') diff --git a/sc/source/ui/docshell/dataprovider.cxx b/sc/source/ui/docshell/dataprovider.cxx index 7df702ca4d29..76f3776b7a4e 100644 --- a/sc/source/ui/docshell/dataprovider.cxx +++ b/sc/source/ui/docshell/dataprovider.cxx @@ -106,10 +106,10 @@ void CSVFetchThread::EndThread() void CSVFetchThread::execute() { - LinesType* pLines = new LinesType(10); + LinesType aLines(10); // Read & store new lines from stream. - for (Line & rLine : *pLines) + for (Line & rLine : aLines) { rLine.maCells.clear(); mpStream->ReadLine(rLine.maLine); -- cgit