mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 21:01:08 +00:00
Bug 1893270 followup: save a copy of the cairo patch in-tree. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D208657
This commit is contained in:
parent
86f86dbf0e
commit
b5c7acadd5
12
gfx/cairo/cff-font-creation.patch
Normal file
12
gfx/cairo/cff-font-creation.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff --git a/gfx/cairo/cairo/src/cairo-cff-subset.c b/gfx/cairo/cairo/src/cairo-cff-subset.c
|
||||
--- a/gfx/cairo/cairo/src/cairo-cff-subset.c
|
||||
+++ b/gfx/cairo/cairo/src/cairo-cff-subset.c
|
||||
@@ -3154,7 +3154,7 @@ static cairo_int_status_t
|
||||
cairo_status_t status;
|
||||
cairo_cff_font_t *font;
|
||||
|
||||
- font = _cairo_malloc (sizeof (cairo_cff_font_t));
|
||||
+ font = calloc (1, sizeof (cairo_cff_font_t));
|
||||
if (unlikely (font == NULL))
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
|
Loading…
Reference in New Issue
Block a user