Check for NULL pointer in cairo_set_scaled_font

This commit is contained in:
Behdad Esfahbod 2008-08-07 15:43:21 -04:00
parent b67d34e960
commit d6ae23478a

View file

@ -2905,6 +2905,11 @@ cairo_set_scaled_font (cairo_t *cr,
if (cr->status)
return;
if (scaled_font == NULL) {
status = CAIRO_STATUS_NULL_POINTER;
goto BAIL;
}
status = scaled_font->status;
if (status)
goto BAIL;