diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-08 16:33:42 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-01-08 16:34:04 -0500 |
commit | 51bce89dbd620d3ed59279d0ae80e5587d723bef (patch) | |
tree | 375a3099457508a8f10da0a92c15d79335f9535d /sc | |
parent | 8fde2885236d5490be8f54e96dfe4a63d9bb9dec (diff) |
Oops. We don't want to leak here.
Change-Id: I8bcca7d743d4be7038a4c2eb1436a6470774d40d
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/documentlinkmgr.hxx | 1 | ||||
-rw-r--r-- | sc/source/ui/docshell/documentlinkmgr.cxx | 5 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx index 2206dfb0c44f..5de8dcd2d5e7 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 399e15eb947c..6ece6b4a6cf0 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); |