diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 15:08:21 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2007-07-31 15:08:21 +0000 |
commit | 5b204f972ef21fa6f37cf421a1818beff914d179 (patch) | |
tree | 69e72883b31bebe00889b98d1a3f3c8bf4af839b /vcl/source/gdi/bitmap.cxx | |
parent | 866233cfdf1ad7ebe747bfd49a2167046fe526f2 (diff) |
INTEGRATION: CWS vcl80 (1.18.262); FILE MERGED
2007/07/12 09:14:12 pl 1.18.262.2: RESYNC: (1.18-1.19); FILE MERGED
2007/07/02 13:55:15 pl 1.18.262.1: #i79088# fix some academic leak cases (thanks cmc)
Diffstat (limited to 'vcl/source/gdi/bitmap.cxx')
-rw-r--r-- | vcl/source/gdi/bitmap.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/gdi/bitmap.cxx b/vcl/source/gdi/bitmap.cxx index 56008680a0c6..3fd713c1a7e2 100644 --- a/vcl/source/gdi/bitmap.cxx +++ b/vcl/source/gdi/bitmap.cxx @@ -4,9 +4,9 @@ * * $RCSfile: bitmap.cxx,v $ * - * $Revision: 1.20 $ + * $Revision: 1.21 $ * - * last change: $Author: rt $ $Date: 2007-07-24 10:07:09 $ + * last change: $Author: hr $ $Date: 2007-07-31 16:08:21 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -404,10 +404,10 @@ ULONG Bitmap::GetChecksum() const nCrc = rtl_crc32( nCrc, pRAcc->GetBuffer(), pRAcc->GetScanlineSize() * pRAcc->Height() ); - ( (Bitmap*) this )->ReleaseAccess( pRAcc ); - mpImpBmp->ImplSetChecksum( nRet = nCrc ); } + + if (pRAcc) ( (Bitmap*) this )->ReleaseAccess( pRAcc ); } } |