summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-12-15 21:27:42 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-12-16 01:48:37 +0000
commita7bd6830e26d798068970684754fa23894d9f7c2 (patch)
tree0c0a7c54e311856a6d0f6eb7b0f1c5f70f36fe0d /sc/source/ui/docshell
parent932719a8c5e53eabe7586a7ac845ff2aaa11e46a (diff)
coverity#1397206 Resource leak
Change-Id: I497388a353425811ff18d9b1937ca536b562ddfc
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r--sc/source/ui/docshell/dataprovider.cxx4
1 files changed, 2 insertions, 2 deletions
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);