diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2007-03-28 20:27:29 +0100 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2007-04-06 12:34:17 -0700 |
commit | 8bb0e5939c0694e88ea9ede4137d7306a067bd17 (patch) | |
tree | 817da60a333c9c147d66de3a263f72398415e811 /src/cairo-ft-font.c | |
parent | b95577a931645b3013d5acaa5b1bd2d892c3932f (diff) |
_get_bitmap_surface - check for calloc failure
Diffstat (limited to 'src/cairo-ft-font.c')
-rw-r--r-- | src/cairo-ft-font.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-ft-font.c b/src/cairo-ft-font.c index c703b988f..0da7d6745 100644 --- a/src/cairo-ft-font.c +++ b/src/cairo-ft-font.c @@ -819,6 +819,8 @@ _get_bitmap_surface (FT_Bitmap *bitmap, stride = bitmap->pitch; stride_rgba = (width_rgba * 4 + 3) & ~3; data_rgba = calloc (1, stride_rgba * height); + if (data_rgba == NULL) + return CAIRO_STATUS_NO_MEMORY; os = 1; switch (font_options->subpixel_order) { |