summaryrefslogtreecommitdiff
path: root/chart2/source/view/charttypes/VSeriesPlotter.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-29 20:04:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-03-01 16:40:37 +0100
commitf1c011eb64b837bd375a6afbfa8cf784e3b723b8 (patch)
tree092d7856e6b886c82bdae82f7ef190dcb1416c67 /chart2/source/view/charttypes/VSeriesPlotter.cxx
parent85eda0537b3f378358542aacfa0689deccb680f1 (diff)
cid#1459020 Resource Leaks
Change-Id: I124a61ee34b315c4853ee0f1d96eb9ee45a76e8c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89764 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'chart2/source/view/charttypes/VSeriesPlotter.cxx')
-rw-r--r--chart2/source/view/charttypes/VSeriesPlotter.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index 2c46743696f6..c971bf04e1ec 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -754,7 +754,8 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
aPoints[0][1].X = nX2;
aPoints[0][1].Y = nY2;
- m_pShapeFactory->createLine2D(xTarget, aPoints, new VLineProperties);
+ VLineProperties aVLineProperties;
+ m_pShapeFactory->createLine2D(xTarget, aPoints, &aVLineProperties);
}
}
}