[Libreoffice-commits] .: basebmp/source
Michael Meeks
michael at kemper.freedesktop.org
Tue Dec 13 07:54:22 PST 2011
basebmp/source/bitmapdevice.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit cefb414b375e3d6be2b722507a9f17faefaae217
Author: Michael Meeks <michael.meeks at suse.com>
Date: Tue Dec 13 15:53:51 2011 +0000
handle failed bitmap storage allocation gracefully
diff --git a/basebmp/source/bitmapdevice.cxx b/basebmp/source/bitmapdevice.cxx
index 6f208cf..ec0d3bb 100644
--- a/basebmp/source/bitmapdevice.cxx
+++ b/basebmp/source/bitmapdevice.cxx
@@ -1889,6 +1889,8 @@ BitmapDeviceSharedPtr createBitmapDeviceImpl( const basegfx::B2IVector&
pMem.reset(
reinterpret_cast<sal_uInt8*>(rtl_allocateMemory( nMemSize )),
&rtl_freeMemory );
+ if (!pMem.get())
+ return BitmapDeviceSharedPtr();
rtl_zeroMemory(pMem.get(),nMemSize);
}
More information about the Libreoffice-commits
mailing list