mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 21:38:03 +02:00
call _cairo_error on failure
Call _cairo_error to enable setting a breakpoint on quartz errors.
This commit is contained in:
parent
8c8ec63903
commit
0eeec372c0
1 changed files with 1 additions and 0 deletions
|
|
@ -485,6 +485,7 @@ SurfacePatternDrawFunc (void *info, CGContextRef context)
|
|||
if (!img) {
|
||||
// ... give up.
|
||||
ND((stderr, "CGBitmapContextCreateImage failed\n"));
|
||||
_cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
cairo_surface_destroy ((cairo_surface_t*)quartz_surf);
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue