Kaydet (Commit) c9a02670 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz: ensure ppHead validity for remaining scope

Change-Id: Ia7d81a80663008aac54ee7d8c3057a4d85c110b3
Reviewed-on: https://gerrit.libreoffice.org/46646Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 0fac5362
......@@ -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 )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment