aboutsummaryrefslogtreecommitdiff
path: root/render
diff options
context:
space:
mode:
Diffstat (limited to 'render')
-rw-r--r--render/allocator/allocator.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/render/allocator/allocator.c b/render/allocator/allocator.c
index 6b96e023..00dadd29 100644
--- a/render/allocator/allocator.c
+++ b/render/allocator/allocator.c
@@ -14,6 +14,7 @@
#include "render/allocator/drm_dumb.h"
#include "render/allocator/shm.h"
#include "render/wlr_renderer.h"
+#include "util/signal.h"
#if WLR_HAS_GBM_ALLOCATOR
#include "render/allocator/gbm.h"
@@ -158,7 +159,7 @@ void wlr_allocator_destroy(struct wlr_allocator *alloc) {
if (alloc == NULL) {
return;
}
- wl_signal_emit(&alloc->events.destroy, NULL);
+ wlr_signal_emit_safe(&alloc->events.destroy, NULL);
alloc->impl->destroy(alloc);
}