diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-03 19:21:59 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-03 19:21:59 +0100 |
commit | af26560f258d93cc78782ddd0208128756874c11 (patch) | |
tree | 43c77d3b21b57cd7143a04ec73c30a8b60dc73df /boilerplate | |
parent | c549203c8d69474be4362037f702e4fb59c9929e (diff) |
test: Improve memfault behaviour.
Various minor tweaks to convert asserts into error returns and to
improve error checking on intermediate surfaces.
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate-svg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boilerplate/cairo-boilerplate-svg.c b/boilerplate/cairo-boilerplate-svg.c index 583f9a16..dbfa0d6d 100644 --- a/boilerplate/cairo-boilerplate-svg.c +++ b/boilerplate/cairo-boilerplate-svg.c @@ -242,7 +242,7 @@ static void _cairo_boilerplate_svg_cleanup (void *closure) { svg_target_closure_t *ptc = closure; - if (ptc->target) { + if (ptc->target != NULL) { cairo_surface_finish (ptc->target); cairo_surface_destroy (ptc->target); } |