From bdf26f87d548c75f5ef90f21645d2370a6ee34f6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 4 Dec 2020 15:35:59 +0100 Subject: [PATCH] render/allocator: ignore NULL in wlr_allocator_destroy --- render/allocator.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/render/allocator.c b/render/allocator.c index 3638bd62..ea1712e9 100644 --- a/render/allocator.c +++ b/render/allocator.c @@ -10,6 +10,9 @@ void wlr_allocator_init(struct wlr_allocator *alloc, } void wlr_allocator_destroy(struct wlr_allocator *alloc) { + if (alloc == NULL) { + return; + } wl_signal_emit(&alloc->events.destroy, NULL); alloc->impl->destroy(alloc); }