diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 15:25:46 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-03 19:54:03 +0100 |
commit | 2f2ce15d1e20ab0096157b50c6b482b7cc540435 (patch) | |
tree | a03070a53ee201a0aec632d0cca153cdd6ac763b /lotuswordpro/source | |
parent | ce4ec0b80e9d181dcec64b749083254d61c85c69 (diff) |
ofz#4920 Direct-leak
Change-Id: I2d4dea7936b1b8bae81bf08362a7d8c1081fdf8e
Reviewed-on: https://gerrit.libreoffice.org/47325
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwppara.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index 2a881f58d50e..cb1b40eb3c3b 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -727,13 +727,13 @@ void LwpPara::RegisterStyle() //register tab style if(m_Fribs.HasFrib(FRIB_TAG_TAB)) { - XFParaStyle* pNewParaStyle = new XFParaStyle; - *pNewParaStyle = *GetXFParaStyle(); + std::unique_ptr<XFParaStyle> xNewParaStyle(new XFParaStyle); + *xNewParaStyle = *GetXFParaStyle(); //pOverStyle->SetStyleName(""); - RegisterTabStyle(pNewParaStyle); + RegisterTabStyle(xNewParaStyle.get()); if (!m_ParentStyleName.isEmpty()) - pNewParaStyle->SetParentStyleName(m_ParentStyleName); - m_StyleName = pXFStyleManager->AddStyle(pNewParaStyle).m_pStyle->GetStyleName(); + xNewParaStyle->SetParentStyleName(m_ParentStyleName); + m_StyleName = pXFStyleManager->AddStyle(xNewParaStyle.release()).m_pStyle->GetStyleName(); } //register master page; |