mirror of
https://github.com/lbonn/rofi
synced 2025-02-17 13:28:31 +00:00
Wayland: fix NULL pointer access
This commit is contained in:
parent
f8bec1453c
commit
fd764eb036
1 changed files with 3 additions and 0 deletions
|
@ -194,6 +194,9 @@ wayland_buffer_pool *display_buffer_pool_new(gint width, gint height) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void display_buffer_pool_free(wayland_buffer_pool *self) {
|
void display_buffer_pool_free(wayland_buffer_pool *self) {
|
||||||
|
if ( self == NULL ) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
self->to_free = TRUE;
|
self->to_free = TRUE;
|
||||||
wayland_buffer_cleanup(self);
|
wayland_buffer_cleanup(self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue