diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-01-20 20:15:10 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-01-20 20:15:48 +0000 |
commit | c68d08a63ed95d96914981fa320afd215a046e72 (patch) | |
tree | 91519c8caf4e853ac1bac47b1967f5b6911f8182 /lotuswordpro/source | |
parent | 0b835ff2d872f3597d5166c25c355ea8e1389f3d (diff) |
ofz#5514 Direct-leak
Change-Id: I9d77f102ed74ac901fffeac3054a57d172fd9dc0
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwpfribptr.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lotuswordpro/source/filter/lwpfribptr.cxx b/lotuswordpro/source/filter/lwpfribptr.cxx index 406a42189075..a899458bca4e 100644 --- a/lotuswordpro/source/filter/lwpfribptr.cxx +++ b/lotuswordpro/source/filter/lwpfribptr.cxx @@ -204,14 +204,14 @@ void LwpFribPtr::XFConvert() XFTabStop *pTab = new XFTabStop; m_pXFPara->Add(pTab); } - } break; + } case FRIB_TAG_SECTION: { LwpFribSection* pSectionFrib = static_cast<LwpFribSection*>(pFrib); pSectionFrib->ParseSection(); + break; } - break; case FRIB_TAG_PAGEBREAK: { @@ -230,28 +230,28 @@ void LwpFribPtr::XFConvert() else { //parse pagebreak - XFParagraph *pPara = new XFParagraph(); - pPara->SetStyleName(pFrib->GetStyleName()); - SetXFPara(pPara); - m_pPara->AddXFContent(pPara); + rtl::Reference<XFParagraph> xPara(new XFParagraph); + xPara->SetStyleName(pFrib->GetStyleName()); + SetXFPara(xPara.get()); + m_pPara->AddXFContent(xPara.get()); } } - } break; + } case FRIB_TAG_COLBREAK: { rtl::Reference<XFParagraph> xPara(new XFParagraph); xPara->SetStyleName(pFrib->GetStyleName()); SetXFPara(xPara.get()); m_pPara->AddXFContent(xPara.get()); - } break; + } case FRIB_TAG_LINEBREAK: { XFLineBreak *pLineBreak = new XFLineBreak; m_pXFPara->Add(pLineBreak); - } break; + } case FRIB_TAG_UNICODE: //fall through case FRIB_TAG_UNICODE2: //fall through case FRIB_TAG_UNICODE3: //fall through |