projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ba1ecc
)
Handle allocation failures of fringe bitmaps on Haiku
author
Po Lu
<luangruo@yahoo.com>
Mon, 14 Feb 2022 07:12:17 +0000
(07:12 +0000)
committer
Po Lu
<luangruo@yahoo.com>
Mon, 14 Feb 2022 07:12:17 +0000
(07:12 +0000)
* src/haikuterm.c (haiku_define_fringe_bitmap): Handle
allocation failures.
src/haikuterm.c
patch
|
blob
|
history
diff --git
a/src/haikuterm.c
b/src/haikuterm.c
index 9d128f6a6a855566ad397d61f1e59d500d16d573..4547380783b81fe21a956079f16b0e49950f258a 100644
(file)
--- a/
src/haikuterm.c
+++ b/
src/haikuterm.c
@@
-2292,8
+2292,12
@@
haiku_define_fringe_bitmap (int which, unsigned short *bits,
fringe_bmps[i++] = NULL;
}
+ block_input ();
fringe_bmps[which] = BBitmap_new (wd, h, 1);
+ if (!fringe_bmps[which])
+ memory_full (SIZE_MAX);
BBitmap_import_fringe_bitmap (fringe_bmps[which], bits, wd, h);
+ unblock_input ();
}
static void