diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 10:52:22 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-02-28 10:53:45 +0000 |
commit | 9fe0c6636f38163936ff65aee2da863a503a4fc7 (patch) | |
tree | 192ff592869d10dafb88cffaded40c8a4b174e36 /lotuswordpro/source | |
parent | dc1c69a4efe9368a1f4fae4bc11325485bcc0772 (diff) |
fix leak
Change-Id: I20e665a2b0bfadd44976b1659d85b1828e10311f
Diffstat (limited to 'lotuswordpro/source')
-rw-r--r-- | lotuswordpro/source/filter/lwppagelayout.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx index bdb99af8077a..4b674214591e 100644 --- a/lotuswordpro/source/filter/lwppagelayout.cxx +++ b/lotuswordpro/source/filter/lwppagelayout.cxx @@ -872,7 +872,7 @@ void LwpHeaderLayout::ParseWaterMark(XFHeaderStyle * pHeaderStyle) void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1) { - XFHeader* pHeader = new XFHeader(); + std::unique_ptr<XFHeader> xHeader(new XFHeader()); rtl::Reference<LwpObject> pStory = m_Content.obj(); if(pStory.is()) { @@ -887,12 +887,12 @@ void LwpHeaderLayout::RegisterStyle(XFMasterPage* mp1) //register child layout style for framelayout, RegisterChildStyle(); //End - pChangeMgr->SetHeadFootChange(pHeader); - pStory->DoXFConvert(pHeader); + pChangeMgr->SetHeadFootChange(xHeader.get()); + pStory->DoXFConvert(xHeader.get()); pChangeMgr->SetHeadFootFribMap(false); } - mp1->SetHeader(pHeader); + mp1->SetHeader(xHeader.release()); } LwpFooterLayout::LwpFooterLayout( LwpObjectHeader &objHdr, LwpSvStream* pStrm ) |