sc/source/core/data/fillinfo.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 69a86a65191f7cc62d995ca9677fb344697b6457
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Sun May 23 20:38:49 2021 +0200
Commit:     Noel Grandin <noel.gran...@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.gran...@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));
                 }
             }
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to