diff options
author | Carl Worth <cworth@cworth.org> | 2006-02-13 16:47:41 -0800 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-02-13 16:47:41 -0800 |
commit | 73c2eada0d0c80763f0a953cce7fc144f7931fa1 (patch) | |
tree | d455caf8febf6e9eb1eed134e5fc80acd26b2f6f /src/cairo-array.c | |
parent | 01dd527ef3cb3205e33ffec90a11fda11f0e281a (diff) | |
parent | b9861b3e877776c5fe5b8b30fe76ced8ff846923 (diff) |
Remove pixman from SNAPSHOT_0_6_0SNAPSHOT_0_6_0
Diffstat (limited to 'src/cairo-array.c')
-rw-r--r-- | src/cairo-array.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cairo-array.c b/src/cairo-array.c index a9f148a0..ef7f77fc 100644 --- a/src/cairo-array.c +++ b/src/cairo-array.c @@ -198,6 +198,11 @@ _cairo_user_data_array_get_data (cairo_user_data_array_t *array, int i, num_slots; cairo_user_data_slot_t *slots; + /* We allow this to support degenerate objects such as + * cairo_image_surface_nil. */ + if (array == NULL) + return NULL; + num_slots = array->num_elements; slots = (cairo_user_data_slot_t *) array->elements; for (i = 0; i < num_slots; i++) { |