Kaydet (Commit) cefb414b authored tarafından Michael Meeks's avatar Michael Meeks

handle failed bitmap storage allocation gracefully

üst 9ffe57dc
...@@ -1889,6 +1889,8 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector& ...@@ -1889,6 +1889,8 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector&
pMem.reset( pMem.reset(
reinterpret_cast<sal_uInt8*>(rtl_allocateMemory( nMemSize )), reinterpret_cast<sal_uInt8*>(rtl_allocateMemory( nMemSize )),
&rtl_freeMemory ); &rtl_freeMemory );
if (!pMem.get())
return BitmapDeviceSharedPtr();
rtl_zeroMemory(pMem.get(),nMemSize); rtl_zeroMemory(pMem.get(),nMemSize);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment