[Libreoffice-commits] core.git: sc/source
Noel Grandin (via logerrit)
logerrit at kemper.freedesktop.org
Mon May 24 09:49:54 UTC 2021
sc/source/core/data/fillinfo.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 69a86a65191f7cc62d995ca9677fb344697b6457
Author: Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Sun May 23 20:38:49 2021 +0200
Commit: Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon May 24 11:49:16 2021 +0200
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 at collabora.co.uk>
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));
}
}
}
More information about the Libreoffice-commits
mailing list