[Libreoffice-commits] core.git: lotuswordpro/source
Caolán McNamara
caolanm at redhat.com
Sat Jan 20 20:16:42 UTC 2018
lotuswordpro/source/filter/lwpfribptr.cxx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
New commits:
commit c68d08a63ed95d96914981fa320afd215a046e72
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Jan 20 20:15:10 2018 +0000
ofz#5514 Direct-leak
Change-Id: I9d77f102ed74ac901fffeac3054a57d172fd9dc0
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
More information about the Libreoffice-commits
mailing list