[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Tue Apr 19 13:36:46 PDT 2011


 sc/source/core/data/table1.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 1cb3b92f53612791f09304649ddc224f05d409a8
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Tue Apr 19 16:35:13 2011 -0400

    Don't forget to NULL the pointer after deleting the instance.

diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 941de04..a333603 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -1655,6 +1655,7 @@ void ScTable::CopyPrintRange(const ScTable& rTable)
     bPrintEntireSheet = rTable.bPrintEntireSheet;
 
     delete pRepeatColRange;
+    pRepeatColRange = NULL;
     if (rTable.pRepeatColRange)
     {
         pRepeatColRange = new ScRange(*rTable.pRepeatColRange);
@@ -1663,6 +1664,7 @@ void ScTable::CopyPrintRange(const ScTable& rTable)
     }
 
     delete pRepeatRowRange;
+    pRepeatRowRange = NULL;
     if (rTable.pRepeatRowRange)
     {
         pRepeatRowRange = new ScRange(*rTable.pRepeatRowRange);


More information about the Libreoffice-commits mailing list