summaryrefslogtreecommitdiff
path: root/lotuswordpro
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-18 01:40:13 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-02-18 01:58:45 +0100
commitfdf59cc3b5928aa1b4fca62909988c455695cd03 (patch)
tree34ae0cce8b2c0287bc1fc22858181b7030cab5f8 /lotuswordpro
parent7511f631775365ec4477e98852a7f6df2bca333a (diff)
coverity: fix memory leak
Change-Id: Ibe595adf52c6880ce4ecdb469b89074fcdc0c16b
Diffstat (limited to 'lotuswordpro')
-rw-r--r--lotuswordpro/source/filter/lwptablelayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx
index ec059754f065..9c8941ecde93 100644
--- a/lotuswordpro/source/filter/lwptablelayout.cxx
+++ b/lotuswordpro/source/filter/lwptablelayout.cxx
@@ -266,7 +266,7 @@ double LwpSuperTableLayout::GetTableWidth()
void LwpSuperTableLayout::ApplyShadow(XFTableStyle *pTableStyle)
{
// use shadow property of supertable
- XFShadow* pXFShadow = GetXFShadow();
+ boost::scoped_ptr<XFShadow> pXFShadow(GetXFShadow());
if(pXFShadow)
{
pTableStyle->SetShadow(pXFShadow->GetPosition(), pXFShadow->GetOffset(), pXFShadow->GetColor());