[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sw/source

Herbert Dürr hdu at apache.org
Thu Feb 28 05:01:56 PST 2013


 sw/source/filter/ww8/ww8par.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 4ffa2ddf2490005347a6567fcd2f619f06c33025
Author: Herbert Dürr <hdu at apache.org>
Date:   Thu Jun 14 05:36:24 2012 +0000

    #c708928# avoid double free error
    
    Signed-off-by: Michael Meeks <michael.meeks at suse.com>

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 8760c72..d18106e 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -793,6 +793,8 @@ SdrObject* SwMSDffManager::ProcessObj(SvStream& rSt,
         if (SeekToContent(DFF_Prop_pWrapPolygonVertices, rSt))
         {
             delete pImpRec->pWrapPolygon;
+            pImpRec->pWrapPolygon = NULL;
+
             sal_uInt16 nNumElemVert, nNumElemMemVert, nElemSizeVert;
             rSt >> nNumElemVert >> nNumElemMemVert >> nElemSizeVert;
             if (nNumElemVert && ((nElemSizeVert == 8) || (nElemSizeVert == 4)))


More information about the Libreoffice-commits mailing list