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/lwplayout.cxx | |
parent | c50c800f9c183f12aa75d64a386c3b9f20731d70 (diff) |
Fix memory leaks, by refcounting XFFont
Change-Id: Iecfddf21f19313f46ee2544fad9c4df1e399e0f5
Diffstat (limited to 'lotuswordpro/source/filter/lwplayout.cxx')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index ac118a38f8d1..141cf1f2ef47 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -1939,7 +1939,6 @@ LwpPlacableLayout::LwpPlacableLayout( LwpObjectHeader &objHdr, LwpSvStream* pStr , m_nBuoyancy(0) , m_nBaseLineOffset(0) , m_nPageNumber(0) - , m_pFont(NULL) {} LwpPlacableLayout::~LwpPlacableLayout() @@ -2127,7 +2126,7 @@ bool LwpPlacableLayout::IsAnchorCell() * @descr: Get font style for setting position of frame * */ -XFFont* LwpPlacableLayout::GetFont() +rtl::Reference<XFFont> LwpPlacableLayout::GetFont() { return m_pFont; } @@ -2135,7 +2134,7 @@ XFFont* LwpPlacableLayout::GetFont() * @descr: Set font style for setting position of frame * */ -void LwpPlacableLayout::SetFont(XFFont * pFont) +void LwpPlacableLayout::SetFont(rtl::Reference<XFFont> const & pFont) { m_pFont = pFont; } |