Mercurial > emacs
diff src/image.c @ 70068:2c4ba2c48153
(x_create_bitmap_from_data) [MAC_OS]: Don't check return
value of xmalloc.
| author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> |
|---|---|
| date | Tue, 18 Apr 2006 08:10:30 +0000 |
| parents | 609c61a0071d |
| children | 37f988f09f67 2d2f6f096f6e 72dea2ff0142 |
line wrap: on
line diff
--- 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 */
