diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-12-15 21:27:42 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-12-16 01:48:37 +0000 |
commit | a7bd6830e26d798068970684754fa23894d9f7c2 (patch) | |
tree | 0c0a7c54e311856a6d0f6eb7b0f1c5f70f36fe0d /sc/source/ui/docshell | |
parent | 932719a8c5e53eabe7586a7ac845ff2aaa11e46a (diff) |
coverity#1397206 Resource leak
Change-Id: I497388a353425811ff18d9b1937ca536b562ddfc
Diffstat (limited to 'sc/source/ui/docshell')
-rw-r--r-- | sc/source/ui/docshell/dataprovider.cxx | 4 |
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); |