[Libreoffice-commits] core.git: sw/source

Herbert Dürr hdu at apache.org
Wed Feb 27 08:34:44 PST 2013


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

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

    #c708928# avoid double free error

diff --git a/sw/source/filter/ww8/ww8par.cxx b/sw/source/filter/ww8/ww8par.cxx
index 9d3994f..8145ef9 100644
--- a/sw/source/filter/ww8/ww8par.cxx
+++ b/sw/source/filter/ww8/ww8par.cxx
@@ -795,6 +795,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