summaryrefslogtreecommitdiff
path: root/renderutil
diff options
context:
space:
mode:
authorJoshua Phillips <jp.sittingduck@gmail.com>2010-10-08 19:10:05 +0100
committerArnaud Fontaine <arnau@debian.org>2010-11-14 20:17:54 +0900
commit4ea7bddd0583445ae57c64b83d9964526b164b11 (patch)
tree5f8be2d5615ea9a67f42e0b111454cce9bc0c37e /renderutil
parente7f60a657ea2f235a792bfe14b888eef522c7e06 (diff)
Check for malloc failure in xcb_render_util_composite_text_stream.
Signed-off-by: Julien Danjou <julien@danjou.info>
Diffstat (limited to 'renderutil')
-rw-r--r--renderutil/glyph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/renderutil/glyph.c b/renderutil/glyph.c
index 1721cad..4996202 100644
--- a/renderutil/glyph.c
+++ b/renderutil/glyph.c
@@ -66,6 +66,8 @@ xcb_render_util_composite_text_stream (
}
stream = malloc(sizeof(xcb_render_util_composite_text_stream_t));
+ if (!stream)
+ return NULL;
stream->glyph_size = 0;
stream->initial_glyphset = initial_glyphset;