diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-27 11:56:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-27 16:31:51 +0200 |
commit | bfd2393ca7247aae1b09e661610a5f750b6e06fa (patch) | |
tree | 76fa0570e7eaba4b3cb10a4c089c776888f3c4a5 /editeng | |
parent | 06e81e90100bb7e3779e461c91530f4b2d9ee3ff (diff) |
ofz#10696 null-deref
since...
commit c6b8587eef3ead53418312c43012f4322789a33a
Date: Wed Sep 19 16:35:10 2018 +0200
loplugin:useuniqueptr in SvxRTFParser
Change-Id: Id901d5645500fedcb54b11e1b5b27fe81281f5a2
Reviewed-on: https://gerrit.libreoffice.org/61033
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/rtf/svxrtf.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editeng/source/rtf/svxrtf.cxx b/editeng/source/rtf/svxrtf.cxx index bfd67ed4ced4..1c4f7f246d09 100644 --- a/editeng/source/rtf/svxrtf.cxx +++ b/editeng/source/rtf/svxrtf.cxx @@ -680,6 +680,7 @@ void SvxRTFParser::AttrGroupEnd() // process the current, delete from Stack if( !aAttrStack.empty() ) { std::unique_ptr<SvxRTFItemStackType> pOld = std::move(aAttrStack.back()); + aAttrStack.pop_back(); SvxRTFItemStackType *pCurrent = aAttrStack.empty() ? nullptr : aAttrStack.back().get(); do { // middle check loop |