mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
[gfx] Use calloc for cairo font-creation functions.
This commit is contained in:
parent
7672f932f7
commit
7d2ecc13dd
1 changed files with 2 additions and 2 deletions
|
|
@ -1726,7 +1726,7 @@ _cairo_cff_font_create (cairo_scaled_font_subset_t *scaled_font_subset,
|
||||||
if (unlikely (status))
|
if (unlikely (status))
|
||||||
return status;
|
return status;
|
||||||
|
|
||||||
font = malloc (sizeof (cairo_cff_font_t));
|
font = calloc (1, sizeof (cairo_cff_font_t));
|
||||||
if (unlikely (font == NULL))
|
if (unlikely (font == NULL))
|
||||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||||
|
|
||||||
|
|
@ -1994,7 +1994,7 @@ _cairo_cff_font_fallback_create (cairo_scaled_font_subset_t *scaled_font_subset
|
||||||
cairo_status_t status;
|
cairo_status_t status;
|
||||||
cairo_cff_font_t *font;
|
cairo_cff_font_t *font;
|
||||||
|
|
||||||
font = malloc (sizeof (cairo_cff_font_t));
|
font = calloc (1, sizeof (cairo_cff_font_t));
|
||||||
if (unlikely (font == NULL))
|
if (unlikely (font == NULL))
|
||||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue