diff options
Diffstat (limited to 'vcl/source/filter/igif/decode.cxx')
-rw-r--r-- | vcl/source/filter/igif/decode.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/filter/igif/decode.cxx b/vcl/source/filter/igif/decode.cxx index 7e136d1e3f20..8cbb52c9f9d8 100644 --- a/vcl/source/filter/igif/decode.cxx +++ b/vcl/source/filter/igif/decode.cxx @@ -64,7 +64,7 @@ Scanline GIFLZWDecompressor::DecompressBlock( sal_uInt8* pSrc, sal_uInt8 cBufSiz { sal_uLong nTargetSize = 4096; sal_uLong nCount = 0; - sal_uInt8* pTarget = static_cast<sal_uInt8*>(rtl_allocateMemory( nTargetSize )); + sal_uInt8* pTarget = static_cast<sal_uInt8*>(std::malloc( nTargetSize )); sal_uInt8* pTmpTarget = pTarget; nBlockBufSize = cBufSize; @@ -79,10 +79,10 @@ Scanline GIFLZWDecompressor::DecompressBlock( sal_uInt8* pSrc, sal_uInt8 cBufSiz { sal_uLong nNewSize = nTargetSize << 1; sal_uLong nOffset = pTmpTarget - pTarget; - sal_uInt8* pTmp = static_cast<sal_uInt8*>(rtl_allocateMemory( nNewSize )); + sal_uInt8* pTmp = static_cast<sal_uInt8*>(std::malloc( nNewSize )); memcpy( pTmp, pTarget, nTargetSize ); - rtl_freeMemory( pTarget ); + std::free( pTarget ); nTargetSize = nNewSize; pTmpTarget = ( pTarget = pTmp ) + nOffset; |