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/lwptablelayout.cxx | |
parent | c50c800f9c183f12aa75d64a386c3b9f20731d70 (diff) |
Fix memory leaks, by refcounting XFFont
Change-Id: Iecfddf21f19313f46ee2544fad9c4df1e399e0f5
Diffstat (limited to 'lotuswordpro/source/filter/lwptablelayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwptablelayout.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lotuswordpro/source/filter/lwptablelayout.cxx b/lotuswordpro/source/filter/lwptablelayout.cxx index 0fe5952518da..3a98f79f9732 100644 --- a/lotuswordpro/source/filter/lwptablelayout.cxx +++ b/lotuswordpro/source/filter/lwptablelayout.cxx @@ -1214,11 +1214,11 @@ void LwpTableLayout::PostProcessParagraph(XFCell *pCell, sal_uInt16 nRowID, sal_ if (bColorMod) { - XFFont* pFont = pOverStyle->GetFont(); + rtl::Reference<XFFont> pFont = pOverStyle->GetFont(); XFColor aColor = pFont->GetColor(); if ( aColor == aNullColor ) { - XFFont* pNewFont = new XFFont; + rtl::Reference<XFFont> pNewFont = new XFFont; aColor = pNumStyle->GetColor(); pNewFont->SetColor(aColor); pOverStyle->SetFont(pNewFont); |