mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-06-07 06:28:17 +02:00
[cairo-truetype-subset] Remove duplicate _cairo_error().
_cairo_error() has already been called at the originating error site, so remove the duplicate call at the return statement.
This commit is contained in:
parent
d89edde84d
commit
141c54cd27
1 changed files with 2 additions and 5 deletions
|
|
@ -224,7 +224,7 @@ _cairo_truetype_font_create (cairo_scaled_font_subset_t *scaled_font_subset,
|
|||
record = &(name->records[i]);
|
||||
if ((be16_to_cpu (record->platform) == 1) &&
|
||||
(be16_to_cpu (record->encoding) == 0) &&
|
||||
(be16_to_cpu (record->name) == 4)) {
|
||||
(be16_to_cpu (record->name) == 4)) {
|
||||
font->base.base_font = malloc (be16_to_cpu(record->length) + 1);
|
||||
if (font->base.base_font) {
|
||||
strncpy(font->base.base_font,
|
||||
|
|
@ -291,7 +291,7 @@ _cairo_truetype_font_create (cairo_scaled_font_subset_t *scaled_font_subset,
|
|||
if (name)
|
||||
free (name);
|
||||
|
||||
return _cairo_error (status);
|
||||
return status;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
@ -1121,9 +1121,6 @@ _cairo_truetype_subset_init (cairo_truetype_subset_t *truetype_subset,
|
|||
fail1:
|
||||
cairo_truetype_font_destroy (font);
|
||||
|
||||
if (status != CAIRO_INT_STATUS_UNSUPPORTED)
|
||||
status = _cairo_error (status);
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue