diff options
Diffstat (limited to 'clients/screenshooter.c')
-rw-r--r-- | clients/screenshooter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clients/screenshooter.c b/clients/screenshooter.c index 64dc76a..8c2b553 100644 --- a/clients/screenshooter.c +++ b/clients/screenshooter.c @@ -201,6 +201,8 @@ add_xdg_output_v1_info(struct screenshooter_data *shooter_data, struct screenshooter_output *output) { struct xdg_output_v1_info *xdg_output = zalloc(sizeof(*xdg_output)); + if (!xdg_output) + return; wl_list_insert(&shooter_data->xdg_output_list, &xdg_output->link); |