aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/allocator.c3
1 files changed, 3 insertions, 0 deletions
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);
}