Mercurial > emacs
changeset 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 | caa39f95eb50 |
children | e82c1fc1df38 |
files | src/image.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
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 */