Wayland: fix NULL pointer access

This commit is contained in:
lbonn 2023-02-11 16:46:44 +01:00
parent f8bec1453c
commit fd764eb036

View file

@ -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);
}