mirror of
https://github.com/lbonn/rofi
synced 2024-11-27 22:30:37 +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) {
|
||||
if ( self == NULL ) {
|
||||
return;
|
||||
}
|
||||
self->to_free = TRUE;
|
||||
wayland_buffer_cleanup(self);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue