summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwpfoundry.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-11-14 09:56:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-11-14 12:02:45 +0000
commit0332e3a8e968f9f85b40405391120d2f5949fbd2 (patch)
tree5bb1c10ed24f64d1d3d2a183dd6903c7dafe8f62 /lotuswordpro/source/filter/lwpfoundry.cxx
parentcoverity#1242888 Unused value (diff)
downloadcore-0332e3a8e968f9f85b40405391120d2f5949fbd2.tar.gz
core-0332e3a8e968f9f85b40405391120d2f5949fbd2.zip
coverity#738972 Use after free
Change-Id: Iba60fc4ff3b10179ebc700467a3d73e7bc7b64c9
Diffstat (limited to 'lotuswordpro/source/filter/lwpfoundry.cxx')
-rw-r--r--lotuswordpro/source/filter/lwpfoundry.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpfoundry.cxx b/lotuswordpro/source/filter/lwpfoundry.cxx
index 8e19cf05b975..04fa6f387ba6 100644
--- a/lotuswordpro/source/filter/lwpfoundry.cxx
+++ b/lotuswordpro/source/filter/lwpfoundry.cxx
@@ -530,7 +530,7 @@ IXFStyle* LwpStyleManager::AddStyle(LwpObjectID styleObjID, IXFStyle* pStyle)
assert(pStyle);
//pStyle may change if same style is found in XFStyleManager
XFStyleManager* pXFStyleManager = LwpGlobalMgr::GetInstance()->GetXFStyleManager();
- pStyle = pXFStyleManager->AddStyle(pStyle);
+ pStyle = pXFStyleManager->AddStyle(pStyle).m_pStyle;
m_StyleList.insert(LwpStyleMap::value_type(styleObjID, pStyle));
return pStyle;
}