diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-07-06 10:41:17 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-07-06 15:21:41 +0200 |
commit | 87836a7acd9a782f7a3513c11b4400b726b64eb7 (patch) | |
tree | 20c6f9273460ef81f9434d63e10bf5a95ce0c6a7 /sw/source/filter/ww8/ww8par6.cxx | |
parent | 2a72602824bf8aec44319e7fb9fe6dd3cebc72b3 (diff) |
ofz: fix some leaks
Change-Id: I35dcd9db95cd1bd567202b4cf61c8e166e17c099
Reviewed-on: https://gerrit.libreoffice.org/39640
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/filter/ww8/ww8par6.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par6.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par6.cxx b/sw/source/filter/ww8/ww8par6.cxx index 73646998052f..188021deffea 100644 --- a/sw/source/filter/ww8/ww8par6.cxx +++ b/sw/source/filter/ww8/ww8par6.cxx @@ -2388,7 +2388,7 @@ bool SwWW8ImplReader::StartApo(const ApoTestResults &rApo, const WW8_TablePos *p if (RndStdIds::FLY_AS_CHAR != m_xSFlyPara->eAnchor && m_xSFlyPara->pFlyFormat) { - m_pAnchorStck->AddAnchor(*m_pPaM->GetPoint(), m_xSFlyPara->pFlyFormat); + m_xAnchorStck->AddAnchor(*m_pPaM->GetPoint(), m_xSFlyPara->pFlyFormat); } // remember Pos in body text @@ -2397,8 +2397,8 @@ bool SwWW8ImplReader::StartApo(const ApoTestResults &rApo, const WW8_TablePos *p //remove fltanchors, otherwise they will be closed inside the //frame, which makes no sense, restore them after the frame is //closed - m_xSFlyPara->xOldAnchorStck.reset(m_pAnchorStck); - m_pAnchorStck = new SwWW8FltAnchorStack(&m_rDoc, m_nFieldFlags); + m_xSFlyPara->xOldAnchorStck = std::move(m_xAnchorStck); + m_xAnchorStck.reset(new SwWW8FltAnchorStack(&m_rDoc, m_nFieldFlags)); if (m_xSFlyPara->pFlyFormat) MoveInsideFly(m_xSFlyPara->pFlyFormat); @@ -2547,7 +2547,7 @@ void SwWW8ImplReader::StopApo() m_xSFlyPara->pFlyFormat->SetFormatAttr(SvxBrushItem(aBg, RES_BACKGROUND)); DeleteAnchorStack(); - m_pAnchorStck = m_xSFlyPara->xOldAnchorStck.release(); + m_xAnchorStck = std::move(m_xSFlyPara->xOldAnchorStck); // When inserting a graphic into the fly frame using the auto // function, the extension of the SW-fly has to be set |