diff options
author | David Tardon <dtardon@redhat.com> | 2011-05-16 12:31:19 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-05-16 15:39:27 +0200 |
commit | d29672239d4c4017ed7d11cadf6909d12d9cdb0b (patch) | |
tree | cca77ff205512ae0d69407142617cdc01e9dbed9 /basic | |
parent | 38d503b64bd3d9959e4e1083318234e95b5b7512 (diff) |
delete even in case of error
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/comp/dim.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/basic/source/comp/dim.cxx b/basic/source/comp/dim.cxx index ed166530f319..c67c9cc9df53 100644 --- a/basic/source/comp/dim.cxx +++ b/basic/source/comp/dim.cxx @@ -593,7 +593,6 @@ void SbiParser::DefType( sal_Bool bPrivate ) break; default: - pDim = NULL; pElem = VarDecl(&pDim,sal_False,sal_False); if( !pElem ) bDone = sal_True; // Error occurred @@ -659,9 +658,9 @@ void SbiParser::DefType( sal_Bool bPrivate ) } } } - delete pDim; pTypeMembers->Insert( pTypeElem, pTypeMembers->Count() ); } + delete pDim, pDim = NULL; delete pElem; } } |