[Libreoffice-commits] core.git: sw/source
Caolán McNamara
caolanm at redhat.com
Sun Dec 17 20:27:45 UTC 2017
sw/source/filter/html/swhtml.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c9a02670076afcba9157ef3a378b8c42b06301c1
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sun Dec 17 14:45:21 2017 +0000
ofz: ensure ppHead validity for remaining scope
Change-Id: Ia7d81a80663008aac54ee7d8c3057a4d85c110b3
Reviewed-on: https://gerrit.libreoffice.org/46646
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/source/filter/html/swhtml.cxx b/sw/source/filter/html/swhtml.cxx
index 88d926472082..3e92cd43edb3 100644
--- a/sw/source/filter/html/swhtml.cxx
+++ b/sw/source/filter/html/swhtml.cxx
@@ -3178,6 +3178,8 @@ void SwHTMLParser::DeleteAttr( HTMLAttr* pAttr )
// now delete the attribute
HTMLAttr *pNext = pAttr->GetNext();
HTMLAttr *pPrev = pAttr->GetPrev();
+ //hold ref to xAttrTab until end of scope to ensure *ppHead validity
+ std::shared_ptr<HTMLAttrTable> xAttrTab(pAttr->xAttrTab);
delete pAttr;
if( pPrev )
More information about the Libreoffice-commits
mailing list