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>
This commit is contained in:
Caolán McNamara 2024-10-20 14:43:04 +01:00
parent 001c3919aa
commit 6f6ec0e948

View file

@ -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 ____