diff options
author | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-04-18 08:10:30 +0000 |
---|---|---|
committer | YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> | 2006-04-18 08:10:30 +0000 |
commit | 1caa0b53a041b8cbf38aad43a90a8bf29349265c (patch) | |
tree | ea93200fd4d794ccfce772204705280d33c70cb5 | |
parent | add7ba7fb27407aac8955f9a78f58c79c69886ed (diff) | |
download | emacs-1caa0b53a041b8cbf38aad43a90a8bf29349265c.tar.gz emacs-1caa0b53a041b8cbf38aad43a90a8bf29349265c.tar.bz2 emacs-1caa0b53a041b8cbf38aad43a90a8bf29349265c.zip |
(x_create_bitmap_from_data) [MAC_OS]: Don't check return
value of xmalloc.
-rw-r--r-- | src/image.c | 4 |
1 files changed, 1 insertions, 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 */ |