diff options
Diffstat (limited to 'src/cairo-skiplist.c')
-rw-r--r-- | src/cairo-skiplist.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cairo-skiplist.c b/src/cairo-skiplist.c index 2d2fbb002..72ca6ce15 100644 --- a/src/cairo-skiplist.c +++ b/src/cairo-skiplist.c @@ -355,6 +355,8 @@ _cairo_skip_list_insert (cairo_skip_list_t *list, void *data, int unique) } data_and_elt = alloc_node_for_level (list, level); + if (data_and_elt == NULL) + return NULL; memcpy (data_and_elt, data, list->data_size); elt = (skip_elt_t *) (data_and_elt + list->data_size); |