sw/source/filter/html/swhtml.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit c9a02670076afcba9157ef3a378b8c42b06301c1 Author: Caolán McNamara <caol...@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 <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@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 )
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits