diff options
author | Oliver Bolte <obo@openoffice.org> | 2008-01-04 13:57:27 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2008-01-04 13:57:27 +0000 |
commit | 8f39d30a48209b54731abc526c2f079f72177883 (patch) | |
tree | c7fcf21c86e6c704a36b9d9750b5bfebfec45e4f /svtools/source/inc | |
parent | e7ade5d405f3f6a057619ed8e3ba3336f4e5aa05 (diff) |
INTEGRATION: CWS mba24issues01 (1.5.102); FILE MERGED
2007/11/01 10:59:06 mba 1.5.102.1: #i79179#: memory leak fixed
Diffstat (limited to 'svtools/source/inc')
-rw-r--r-- | svtools/source/inc/poolio.hxx | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/svtools/source/inc/poolio.hxx b/svtools/source/inc/poolio.hxx index a52eceea4360..37ab4fc33b84 100644 --- a/svtools/source/inc/poolio.hxx +++ b/svtools/source/inc/poolio.hxx @@ -4,9 +4,9 @@ * * $RCSfile: poolio.hxx,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: hr $ $Date: 2007-06-27 21:37:41 $ + * last change: $Author: obo $ $Date: 2008-01-04 14:57:27 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -143,6 +143,20 @@ struct SfxItemPool_Impl } \ } +#define CHECK_FILEFORMAT_RELEASE( rStream, nTag, pPointer ) \ + { USHORT nFileTag; \ + rStream >> nFileTag; \ + if ( nTag != nFileTag ) \ + { \ + DBG_ERROR( #nTag ); /*! s.u. */ \ + /*! error-code setzen und auswerten! */ \ + (rStream).SetError(SVSTREAM_FILEFORMAT_ERROR); \ + pImp->bStreaming = FALSE; \ + delete pPointer; \ + return rStream; \ + } \ + } + #define CHECK_FILEFORMAT2( rStream, nTag1, nTag2 ) \ { USHORT nFileTag; \ rStream >> nFileTag; \ |