summaryrefslogtreecommitdiffstats
path: root/sfx2/source/appl/lnkbase2.cxx
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-05-12 10:45:38 +0200
committerDavid Tardon <dtardon@redhat.com>2011-05-12 14:32:29 +0200
commit5861faa1b378074c389200e8adef467f5b3099c9 (patch)
treeda33b545c1e13058899423f1c88751e34d4f7772 /sfx2/source/appl/lnkbase2.cxx
parentdo not leak memory (diff)
downloadcore-5861faa1b378074c389200e8adef467f5b3099c9.tar.gz
core-5861faa1b378074c389200e8adef467f5b3099c9.zip
do not leak memory
Diffstat (limited to 'sfx2/source/appl/lnkbase2.cxx')
-rw-r--r--sfx2/source/appl/lnkbase2.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sfx2/source/appl/lnkbase2.cxx b/sfx2/source/appl/lnkbase2.cxx
index 90d192ff3736..0f2488cfe3d5 100644
--- a/sfx2/source/appl/lnkbase2.cxx
+++ b/sfx2/source/appl/lnkbase2.cxx
@@ -160,6 +160,7 @@ SvBaseLink::SvBaseLink( sal_uInt16 nUpdateMode, sal_uIntPtr nContentType )
//--------------------------------------------------------------------------
SvBaseLink::SvBaseLink( const String& rLinkName, sal_uInt16 nObjectType, SvLinkSource* pObj )
+ : pImpl(0)
{
bVisible = bSynchron = bUseCache = sal_True;
bWasLastEditOK = sal_False;
@@ -209,6 +210,7 @@ SvBaseLink::~SvBaseLink()
}
delete pImplData;
+ delete pImpl;
}
IMPL_LINK( SvBaseLink, EndEditHdl, String*, _pNewName )