From c68d08a63ed95d96914981fa320afd215a046e72 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 20 Jan 2018 20:15:10 +0000 Subject: ofz#5514 Direct-leak Change-Id: I9d77f102ed74ac901fffeac3054a57d172fd9dc0 --- lotuswordpro/source/filter/lwpfribptr.cxx | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lotuswordpro') 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(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 xPara(new XFParagraph); + xPara->SetStyleName(pFrib->GetStyleName()); + SetXFPara(xPara.get()); + m_pPara->AddXFContent(xPara.get()); } } - } break; + } case FRIB_TAG_COLBREAK: { rtl::Reference 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 -- cgit