mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 14:45:58 +01:00
scene/output: check for NULL in destructor
This commit is contained in:
parent
02e648c1b2
commit
ee122c9c2a
1 changed files with 4 additions and 0 deletions
|
@ -969,6 +969,10 @@ static void scene_node_remove_output(struct wlr_scene_node *node,
|
||||||
}
|
}
|
||||||
|
|
||||||
void wlr_scene_output_destroy(struct wlr_scene_output *scene_output) {
|
void wlr_scene_output_destroy(struct wlr_scene_output *scene_output) {
|
||||||
|
if (scene_output == NULL) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
scene_node_remove_output(&scene_output->scene->node, scene_output);
|
scene_node_remove_output(&scene_output->scene->node, scene_output);
|
||||||
|
|
||||||
wlr_addon_finish(&scene_output->addon);
|
wlr_addon_finish(&scene_output->addon);
|
||||||
|
|
Loading…
Reference in a new issue