diff options
author | Kirill Primak <[email protected]> | 2022-05-22 10:36:25 +0300 |
---|---|---|
committer | Simon Ser <[email protected]> | 2022-05-23 07:33:49 +0000 |
commit | aea018c787a3cca4310cadd16372865bfeaf23a7 (patch) | |
tree | dc1931ee150e9692081ce9fe4adcf1e210043b23 /wlr_scene.c | |
parent | 14965ffedf841c6fb1c94a116be6bd7f1c729c9c (diff) |
scene/output: check for NULL in destructor
Diffstat (limited to 'wlr_scene.c')
-rw-r--r-- | wlr_scene.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wlr_scene.c b/wlr_scene.c index 2435ede..303325f 100644 --- a/wlr_scene.c +++ b/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); |