# HG changeset patch # User YAMAMOTO Mitsuharu # Date 1145347830 0 # Node ID 2c4ba2c481531e66b5c027c09119ab98422784df # Parent caa39f95eb50a8a9b15606fbc4c8795f3ddb93ae (x_create_bitmap_from_data) [MAC_OS]: Don't check return value of xmalloc. diff -r caa39f95eb50 -r 2c4ba2c48153 src/image.c --- a/src/image.c Tue Apr 18 06:37:51 2006 +0000 +++ b/src/image.c Tue Apr 18 08:10:30 2006 +0000 @@ -201,7 +201,7 @@ } else #endif - if (depth == 1) + if (depth == 1) { char *base_addr = GetPixBaseAddr (pixmap); short row_bytes = GetPixRowBytes (pixmap); @@ -444,8 +444,6 @@ 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 */