mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
layer-shell: check for NULL in wlr_layer_surface_v1_destroy()
This commit is contained in:
parent
2cf78f4c5b
commit
65f6f556d9
1 changed files with 3 additions and 0 deletions
|
|
@ -293,6 +293,9 @@ uint32_t wlr_layer_surface_v1_configure(struct wlr_layer_surface_v1 *surface,
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_layer_surface_v1_destroy(struct wlr_layer_surface_v1 *surface) {
|
void wlr_layer_surface_v1_destroy(struct wlr_layer_surface_v1 *surface) {
|
||||||
|
if (surface == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
zwlr_layer_surface_v1_send_closed(surface->resource);
|
zwlr_layer_surface_v1_send_closed(surface->resource);
|
||||||
layer_surface_destroy(surface);
|
layer_surface_destroy(surface);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue