sc/inc/documentlinkmgr.hxx | 1 + sc/source/ui/docshell/documentlinkmgr.cxx | 5 +++++ 2 files changed, 6 insertions(+)
New commits: commit 51bce89dbd620d3ed59279d0ae80e5587d723bef Author: Kohei Yoshida <kohei.yosh...@collabora.com> Date: Wed Jan 8 16:33:42 2014 -0500 Oops. We don't want to leak here. Change-Id: I8bcca7d743d4be7038a4c2eb1436a6470774d40d diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx index 2206dfb..5de8dcd 100644 --- a/sc/inc/documentlinkmgr.hxx +++ b/sc/inc/documentlinkmgr.hxx @@ -32,6 +32,7 @@ class DocumentLinkManager : boost::noncopyable public: DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell ); + ~DocumentLinkManager(); void setDataStream( DataStream* p ); DataStream* getDataStream(); diff --git a/sc/source/ui/docshell/documentlinkmgr.cxx b/sc/source/ui/docshell/documentlinkmgr.cxx index 399e15e..6ece6b4 100644 --- a/sc/source/ui/docshell/documentlinkmgr.cxx +++ b/sc/source/ui/docshell/documentlinkmgr.cxx @@ -44,6 +44,11 @@ struct DocumentLinkManagerImpl : boost::noncopyable DocumentLinkManager::DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell ) : mpImpl(new DocumentLinkManagerImpl(rDoc, pShell)) {} +DocumentLinkManager::~DocumentLinkManager() +{ + delete mpImpl; +} + void DocumentLinkManager::setDataStream( DataStream* p ) { mpImpl->mpDataStream.reset(p); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits