mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 11:08:12 +02:00
[tessellator] Memleak on error path.
Add a missing _cairo_skip_list_fini() after failure to allocate the events.
This commit is contained in:
parent
6b5d2bf1a7
commit
1d52fbc8f4
1 changed files with 3 additions and 1 deletions
|
|
@ -982,8 +982,10 @@ _cairo_bo_event_queue_init (cairo_bo_event_queue_t *event_queue,
|
|||
sizeof (cairo_bo_event_t) +
|
||||
sizeof (cairo_bo_event_t *),
|
||||
sizeof (cairo_bo_event_t *));
|
||||
if (unlikely (events == NULL))
|
||||
if (unlikely (events == NULL)) {
|
||||
_cairo_skip_list_fini (&event_queue->intersection_queue);
|
||||
return _cairo_error (CAIRO_STATUS_NO_MEMORY);
|
||||
}
|
||||
|
||||
sorted_event_ptrs = (cairo_bo_event_t **) (events + num_events);
|
||||
event_queue->startstop_events = events;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue