Index: gm/cgm.c |
diff --git a/gm/cgm.c b/gm/cgm.c |
index 5a20a7d1bfe3a8c3e8def08e217ef495e015cecd..8e65bda30769755a558e849b91297f9f4753ad9a 100644 |
--- a/gm/cgm.c |
+++ b/gm/cgm.c |
@@ -67,8 +67,10 @@ void sk_test_c_api(sk_canvas_t* canvas) { |
sk_image_t* img1 = sk_image_new_from_data(data); |
sk_data_unref(data); |
- sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); |
- sk_image_unref(img1); |
+ if (img1) { |
scroggo
2014/12/30 11:14:33
Can we at least log something in this case? It see
|
+ sk_canvas_draw_image(canvas, img1, W/2, H/2, NULL); |
+ sk_image_unref(img1); |
+ } |
} |