diff options
author | Sascha Ballach <sab@openoffice.org> | 2001-11-21 07:42:43 +0000 |
---|---|---|
committer | Sascha Ballach <sab@openoffice.org> | 2001-11-21 07:42:43 +0000 |
commit | 5445dc52e7af22c9c176ad2deac6e5dab498557a (patch) | |
tree | e42674d7577ac7cae10d897916390a1a376f7fba /sc/source | |
parent | 859aa1778b19707ce24de97972b4bf0ce00dff8d (diff) |
#95024#; delete pNewData and fix so a memory leak
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx index ed90cc04ce88..53a5a16aa8b5 100644 --- a/sc/source/ui/docshell/docfunc.cxx +++ b/sc/source/ui/docshell/docfunc.cxx @@ -2,9 +2,9 @@ * * $RCSfile: docfunc.cxx,v $ * - * $Revision: 1.25 $ + * $Revision: 1.26 $ * - * last change: $Author: nn $ $Date: 2001-10-31 15:59:24 $ + * last change: $Author: sab $ $Date: 2001-11-21 08:42:43 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -877,6 +877,7 @@ BOOL ScDocFunc::PutData( const ScAddress& rPos, EditEngine& rEngine, BOOL bInter bRet = PutCell( rPos, new ScEditCell( pNewData, pDoc, rEngine.GetEditTextObjectPool() ), bApi ); + delete pNewData; // Set the paragraph attributes back to the EditEngine. if (!aRememberItems.empty()) @@ -894,7 +895,6 @@ BOOL ScDocFunc::PutData( const ScAddress& rPos, EditEngine& rEngine, BOOL bInter if (bUpdateMode) rEngine.SetUpdateMode(sal_True); - } else { |