summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwptable.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/lwptable.cxx
parent7abe976be5166845c5f43b70a0dfb38608d31356 (diff)
Fix memory leaks, by refcounting LwpObject
Change-Id: I1539597cd5bcabcbf0295d1acc320c503ad53604
Diffstat (limited to 'lotuswordpro/source/filter/lwptable.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptable.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptable.cxx b/lotuswordpro/source/filter/lwptable.cxx
index 4be1075a5400..4d5539ee0dff 100644
--- a/lotuswordpro/source/filter/lwptable.cxx
+++ b/lotuswordpro/source/filter/lwptable.cxx
@@ -142,9 +142,9 @@ void LwpTable::Parse(IXFStream* /*pOutputStream*/)
LwpSuperTableLayout* LwpTable::GetSuperTableLayout()
{
- LwpTableLayout* pLayout = dynamic_cast<LwpTableLayout*>(m_Layout.obj());
+ LwpTableLayout* pLayout = dynamic_cast<LwpTableLayout*>(m_Layout.obj().get());
if(pLayout)
- return dynamic_cast<LwpSuperTableLayout*>(pLayout->GetParent()->obj());
+ return dynamic_cast<LwpSuperTableLayout*>(pLayout->GetParent()->obj().get());
return NULL;
}