diff options
Diffstat (limited to 'lotuswordpro/source/filter/lwppara.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwppara.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwppara.cxx b/lotuswordpro/source/filter/lwppara.cxx index d5ad1969df37..82192ec7073e 100644 --- a/lotuswordpro/source/filter/lwppara.cxx +++ b/lotuswordpro/source/filter/lwppara.cxx @@ -95,6 +95,7 @@ #include "lwpdropcapmgr.hxx" #include "lwptable.hxx" +#include <memory> LwpPara::LwpPara(LwpObjectHeader& objHdr, LwpSvStream* pStrm) : LwpDLVList(objHdr, pStrm) @@ -194,10 +195,9 @@ void LwpPara::Read() { if (Notify) { - LwpForked3NotifyList* pNotifyList = new LwpForked3NotifyList(); + std::unique_ptr<LwpForked3NotifyList> pNotifyList( new LwpForked3NotifyList ); pNotifyList->GetExtraList().Read(m_pObjStrm.get()); pNotifyList->Read(m_pObjStrm.get()); - delete pNotifyList; } } } |