diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-06 16:49:17 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-06 16:49:44 +0200 |
commit | 37183595bb3b4d58682f90fd9f6713bedcb852a2 (patch) | |
tree | 1ac1fd9d69c0d09ea204173bd77721dc01bbddeb /lotuswordpro/source/filter/lwpvpointer.cxx | |
parent | Avoid undefined mis-aligned memory access (diff) | |
download | core-37183595bb3b4d58682f90fd9f6713bedcb852a2.tar.gz core-37183595bb3b4d58682f90fd9f6713bedcb852a2.zip |
Fix memory leaks, by refcounting LwpObject
Change-Id: I1539597cd5bcabcbf0295d1acc320c503ad53604
Diffstat (limited to 'lotuswordpro/source/filter/lwpvpointer.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpvpointer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpvpointer.cxx b/lotuswordpro/source/filter/lwpvpointer.cxx index 2b90efb4822e..796e0d4b4b2a 100644 --- a/lotuswordpro/source/filter/lwpvpointer.cxx +++ b/lotuswordpro/source/filter/lwpvpointer.cxx @@ -73,8 +73,8 @@ void LwpVersionedPointer::Parse(IXFStream* /*pOutputStream*/) void LwpVersionedPointer::RegisterStyle() { - LwpObject* pObj = m_PointerID.obj(); - if( pObj ) + rtl::Reference<LwpObject> pObj = m_PointerID.obj(); + if( pObj.is() ) { pObj->SetFoundry(m_pFoundry); pObj->RegisterStyle(); |