diff --git a/source/wayland/display.c b/source/wayland/display.c index ab8d428b..0293ef44 100644 --- a/source/wayland/display.c +++ b/source/wayland/display.c @@ -194,6 +194,9 @@ wayland_buffer_pool *display_buffer_pool_new(gint width, gint height) { } void display_buffer_pool_free(wayland_buffer_pool *self) { + if ( self == NULL ) { + return; + } self->to_free = TRUE; wayland_buffer_cleanup(self); }