summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpproplist.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-06-06 16:49:17 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-06-06 16:49:44 +0200
commit37183595bb3b4d58682f90fd9f6713bedcb852a2 (patch)
tree1ac1fd9d69c0d09ea204173bd77721dc01bbddeb /lotuswordpro/source/filter/lwpproplist.cxx
parentAvoid undefined mis-aligned memory access (diff)
downloadcore-37183595bb3b4d58682f90fd9f6713bedcb852a2.tar.gz
core-37183595bb3b4d58682f90fd9f6713bedcb852a2.zip
Fix memory leaks, by refcounting LwpObject
Change-Id: I1539597cd5bcabcbf0295d1acc320c503ad53604
Diffstat (limited to 'lotuswordpro/source/filter/lwpproplist.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpproplist.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwpproplist.cxx b/lotuswordpro/source/filter/lwpproplist.cxx
index 44740cdae8b7..6547f64ea607 100644
--- a/lotuswordpro/source/filter/lwpproplist.cxx
+++ b/lotuswordpro/source/filter/lwpproplist.cxx
@@ -71,7 +71,7 @@ LwpPropListElement::LwpPropListElement(LwpObjectHeader &objHdr, LwpSvStream *pSt
LwpPropListElement* LwpPropListElement::GetNext()
{
- return static_cast<LwpPropListElement*>(LwpDLVList::GetNext()->obj());
+ return static_cast<LwpPropListElement*>(LwpDLVList::GetNext()->obj().get());
}
void LwpPropListElement::Read()
@@ -117,7 +117,7 @@ void LwpPropList::Read(LwpObjectStream* pObjStrm)
LwpPropListElement* LwpPropList::GetFirst()
{
- return static_cast<LwpPropListElement*>(LwpDLVListHead::GetFirst()->obj());
+ return static_cast<LwpPropListElement*>(LwpDLVListHead::GetFirst()->obj().get());
}
OUString LwpPropList::EnumNamedProperty(OUString& name,OUString& value)