diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-23 20:38:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-05-24 11:49:16 +0200 |
commit | 69a86a65191f7cc62d995ca9677fb344697b6457 (patch) | |
tree | df5478f10258cbf634590d8563c1f15fb18ec5db /sc/source/core | |
parent | ae38f1dff768e3582464f34ec4cd89b8133e8423 (diff) |
fix leak in conditional format
Change-Id: If44615016ab22f4d9e57845c4b0c9fc90b6d91c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116032
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core')
-rw-r--r-- | sc/source/core/data/fillinfo.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/fillinfo.cxx b/sc/source/core/data/fillinfo.cxx index 0405a55a1cd9..1c3fc8738746 100644 --- a/sc/source/core/data/fillinfo.cxx +++ b/sc/source/core/data/fillinfo.cxx @@ -680,7 +680,7 @@ void ScDocument::FillInfo( if( bAnyCondition && pInfo->mxColorScale) { pRowInfo[nArrRow].bEmptyBack = false; - pInfo->pBackground = new SvxBrushItem(*pInfo->mxColorScale, ATTR_BACKGROUND); + pInfo->pBackground = &pPool->Put(SvxBrushItem(*pInfo->mxColorScale, ATTR_BACKGROUND)); } } } |