Author: spouliot
Date: 2006-07-06 08:10:03 -0400 (Thu, 06 Jul 2006)
New Revision: 62310
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/image.c
Log:
2006-07-06 Sebastien Pouliot <[EMAIL PROTECTED]>
* image.c: Add missing NULL check to GdipDisposeImage.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2006-07-06 12:01:18 UTC (rev 62309)
+++ trunk/libgdiplus/src/ChangeLog 2006-07-06 12:10:03 UTC (rev 62310)
@@ -1,3 +1,7 @@
+2006-07-06 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * image.c: Add missing NULL check to GdipDisposeImage.
+
2006-07-04 Sebastien Pouliot <[EMAIL PROTECTED]>
* pen.c: Fix #78742 where an error occurs when we use a pen's width of
Modified: trunk/libgdiplus/src/image.c
===================================================================
--- trunk/libgdiplus/src/image.c 2006-07-06 12:01:18 UTC (rev 62309)
+++ trunk/libgdiplus/src/image.c 2006-07-06 12:10:03 UTC (rev 62310)
@@ -65,6 +65,9 @@
GpStatus
GdipDisposeImage (GpImage *image)
{
+ if (!image)
+ return InvalidParameter;
+
if (image->type == imageBitmap) {
gdip_bitmap_dispose(image);
return Ok;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches