[Libreoffice-commits] .: sc/source

Kohei Yoshida kohei at kemper.freedesktop.org
Fri Feb 18 11:39:58 PST 2011


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

New commits:
commit dd537a4acaf63a1f6cc025f02446f13cd3b5f94b
Author: Kohei Yoshida <kyoshida at novell.com>
Date:   Fri Feb 18 14:39:18 2011 -0500

    Fixed a memory leak in the datapilot code.
    
    Calc was leaking memory every time the source range of a data pilot
    table changes. *sigh*

diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index bbee292..a3fb001 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -271,7 +271,7 @@ void ScDPObject::SetSheetDesc(const ScSheetSourceDesc& rDesc)
     DELETEZ( pImpDesc );
     DELETEZ( pServDesc );
 
-    delete pImpDesc;
+    delete pSheetDesc;
     pSheetDesc = new ScSheetSourceDesc(rDesc);
 
     //	make valid QueryParam


More information about the Libreoffice-commits mailing list