Kaydet (Commit) d525fe37 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#6024 Direct-leak

Change-Id: I43959dea19860bc0d34c4623fc86ccb3ce069189
üst 3e6b60b2
......@@ -144,9 +144,9 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
sChangeID = pChangeMgr->GetChangeID(this);
if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeStart* pChangeStart = new XFChangeStart;
pChangeStart->SetChangeID(sChangeID);
pXFContentContainer->Add(pChangeStart);
rtl::Reference<XFChangeStart> xChangeStart(new XFChangeStart);
xChangeStart->SetChangeID(sChangeID);
pXFContentContainer->Add(xChangeStart.get());
}
}
......@@ -157,19 +157,19 @@ void LwpFribTable::XFConvert(XFContentContainer* pCont)
{
if (!sChangeID.isEmpty() && pXFContentContainer)
{
XFChangeEnd* pChangeEnd = new XFChangeEnd;
pChangeEnd->SetChangeID(sChangeID);
pXFContentContainer->Add(pChangeEnd);
rtl::Reference<XFChangeEnd> xChangeEnd(new XFChangeEnd);
xChangeEnd->SetChangeID(sChangeID);
pXFContentContainer->Add(xChangeEnd.get());
}
}
if(LwpLayoutRelativityGuts::LAY_INLINE_NEWLINE == nType
&& HasNextFrib())
{
XFParagraph* pXFPara = new XFParagraph();
pXFPara->SetStyleName(m_StyleName);
m_pPara->AddXFContent(pXFPara);
m_pPara->GetFribs().SetXFPara(pXFPara);
rtl::Reference<XFParagraph> xXFPara(new XFParagraph);
xXFPara->SetStyleName(m_StyleName);
m_pPara->AddXFContent(xXFPara.get());
m_pPara->GetFribs().SetXFPara(xXFPara.get());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment