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

New commits:
commit 4fc1f3c83adbdbacc9f89e9b87d9cccb6603ef47
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sun Jan 28 19:42:46 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Sun Jan 28 22:15:00 2024 +0100

    cid#1559947 silence Double free
    
    Change-Id: I85534fb07620e9b8958689c2ccd30b1fa730066d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162669
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sc/source/core/data/column4.cxx b/sc/source/core/data/column4.cxx
index 3ddec747b7ef..2f9c46deb838 100644
--- a/sc/source/core/data/column4.cxx
+++ b/sc/source/core/data/column4.cxx
@@ -1255,7 +1255,7 @@ void ScColumn::Swap( ScColumn& rOther, SCROW nRow1, SCROW 
nRow2, bool bPattern )
             {
                 CellAttributeHolder aTemp(pPat1);
                 SetPattern(nRow, *pPat2);
-                rOther.SetPattern(nRow, *pPat1);
+                rOther.SetPattern(nRow, aTemp);
             }
         }
     }

Reply via email to