diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-06-06 15:19:50 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-06-06 15:19:50 +0200 |
commit | fa49b57806e1215f156a525cf9123078a32841cb (patch) | |
tree | 5887b9b50ca9734ed708bf22df0cff1187b70a2c /lotuswordpro/source/filter/lwpparastyle.cxx | |
parent | coverity#708822 Unused pointer value (diff) | |
download | core-fa49b57806e1215f156a525cf9123078a32841cb.tar.gz core-fa49b57806e1215f156a525cf9123078a32841cb.zip |
Fix memory leaks, by refcounting XFFont
Change-Id: Iecfddf21f19313f46ee2544fad9c4df1e399e0f5
Diffstat (limited to 'lotuswordpro/source/filter/lwpparastyle.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwpparastyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwpparastyle.cxx b/lotuswordpro/source/filter/lwpparastyle.cxx index 70b8e93ea622..04e25dd77696 100644 --- a/lotuswordpro/source/filter/lwpparastyle.cxx +++ b/lotuswordpro/source/filter/lwpparastyle.cxx @@ -693,7 +693,7 @@ void LwpParaStyle::RegisterStyle() //Create font LwpFontManager* pFontMgr = m_pFoundry->GetFontManger(); - XFFont* pFont = pFontMgr->CreateFont(m_nFinalFontID); + rtl::Reference<XFFont> pFont = pFontMgr->CreateFont(m_nFinalFontID); pStyle->SetFont(pFont); //Set other paragraph properties... |