diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-20 14:43:04 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2024-10-20 17:04:27 +0200 |
commit | 6f6ec0e9481225073835e6ef8a3a463889e66c4d (patch) | |
tree | d0b1d2f92b8c69982c2bea812a143f015acfb775 /chart2/source | |
parent | 001c3919aabc6713835f67e9cd86ece88c68736e (diff) |
cid#1633319 Resource leak
Change-Id: Icdbc973b6c0d40366a1a261706e21bbb50a8826e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175258
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/tools/InternalDataProvider.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx index 3e1f8372a7b2..71285ab6c7e7 100644 --- a/chart2/source/tools/InternalDataProvider.cxx +++ b/chart2/source/tools/InternalDataProvider.cxx @@ -1147,9 +1147,8 @@ void SAL_CALL InternalDataProvider::registerDataSequenceForChanges( const Refere void SAL_CALL InternalDataProvider::insertDataSeries(::sal_Int32 nAfterIndex) { // call the dialog insertion - rtl::Reference<ChartModel> xChartModel(m_xChartModel); - DataBrowserModel* pDBM = new DataBrowserModel(xChartModel); - pDBM->insertDataSeries(nAfterIndex); + DataBrowserModel aDBM(m_xChartModel); + aDBM.insertDataSeries(nAfterIndex); } // ____ XRangeXMLConversion ____ |