diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-05-22 10:36:25 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-05-23 07:33:49 +0000 |
commit | ee122c9c2a6c6d0e9286ee434375245f4ed5d04c (patch) | |
tree | b3f3940e31ad93952e52d995c9529bfb6ef2517e | |
parent | 02e648c1b2be5aee77893b38bd4fc9923c359fe8 (diff) |
scene/output: check for NULL in destructor
-rw-r--r-- | types/scene/wlr_scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/types/scene/wlr_scene.c b/types/scene/wlr_scene.c index 2435edef..303325fd 100644 --- a/types/scene/wlr_scene.c +++ b/types/scene/wlr_scene.c @@ -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) { + if (scene_output == NULL) { + return; + } + scene_node_remove_output(&scene_output->scene->node, scene_output); wlr_addon_finish(&scene_output->addon); |