From 1caa0b53a041b8cbf38aad43a90a8bf29349265c Mon Sep 17 00:00:00 2001 From: YAMAMOTO Mitsuharu Date: Tue, 18 Apr 2006 08:10:30 +0000 Subject: [PATCH] (x_create_bitmap_from_data) [MAC_OS]: Don't check return value of xmalloc. --- src/image.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/image.c b/src/image.c index 91aa1198769..10c402be119 100644 --- a/src/image.c +++ b/src/image.c @@ -201,7 +201,7 @@ XPutPixel (ximage, x, y, pixel) } else #endif - if (depth == 1) + if (depth == 1) { char *base_addr = GetPixBaseAddr (pixmap); short row_bytes = GetPixRowBytes (pixmap); @@ -444,8 +444,6 @@ x_create_bitmap_from_data (f, bits, width, height) id = x_allocate_bitmap_record (f); #ifdef MAC_OS dpyinfo->bitmaps[id - 1].bitmap_data = (char *) xmalloc (height * width); - if (! dpyinfo->bitmaps[id - 1].bitmap_data) - return -1; bcopy (bits, dpyinfo->bitmaps[id - 1].bitmap_data, height * width); #endif /* MAC_OS */ -- 2.39.2