summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-04 20:32:17 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2023-10-05 12:11:38 +0200
commit5c52884611a0e8586ecfa8ccaf24c9e22ad5a872 (patch)
treeb476957900196f9352d83074542dd8684bc5063c /chart2
parentdd1e392dfd1934c1819ef32ee01a6c3091c5c7b2 (diff)
crashtesting: crash seen on exit of chart
with soffice --headless --convert-to ods forum-mso-en4-569016.xlsx and other similar Change-Id: I908fa834c1072a9854055cad1ee6261800d76aea Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157573 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/main/DrawModelWrapper.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/chart2/source/view/main/DrawModelWrapper.cxx b/chart2/source/view/main/DrawModelWrapper.cxx
index 1767d2ccdb6b..d5aff15c6660 100644
--- a/chart2/source/view/main/DrawModelWrapper.cxx
+++ b/chart2/source/view/main/DrawModelWrapper.cxx
@@ -101,8 +101,11 @@ DrawModelWrapper::DrawModelWrapper()
DrawModelWrapper::~DrawModelWrapper()
{
+ // normally call from ~SdrModel, but do it here explicitly before we clear m_xChartItemPool
+ implDtorClearModel();
+
//remove m_pChartItemPool from pool chain
- if(m_xChartItemPool)
+ if (m_xChartItemPool)
{
SfxItemPool* pPool = &GetItemPool();
for (;;)