summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-20 14:43:04 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-10-22 09:19:07 +0200
commita0b328f1329b325de939a8e59bddc0fdda0ee5d0 (patch)
treead644ce428ba23e0e54cf51010ed2b84870193b2 /chart2
parente0856bc538fb938af372ea7cd250a05a30025556 (diff)
cid#1633319 Resource leak
Change-Id: Icdbc973b6c0d40366a1a261706e21bbb50a8826e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175261 Reviewed-by: Attila Szűcs <attila.szucs@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/tools/InternalDataProvider.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/chart2/source/tools/InternalDataProvider.cxx b/chart2/source/tools/InternalDataProvider.cxx
index 16a24836df0a..9d58f0bc7e8d 100644
--- a/chart2/source/tools/InternalDataProvider.cxx
+++ b/chart2/source/tools/InternalDataProvider.cxx
@@ -1169,9 +1169,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 ____