diff options
author | emersion <contact@emersion.fr> | 2018-07-13 19:27:04 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-13 19:27:04 +0100 |
commit | 935a3f2ebb026717b04fd6b2e2c7d0445e3f2f0f (patch) | |
tree | 39f9f76bc960518988093c6c6684a77be21a2063 | |
parent | 3ae423b0e35fb35cc4cee972c4f29f020efad877 (diff) |
screencopy: fix segfault when client supplies invalid buffer
-rw-r--r-- | types/wlr_screencopy_v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index f994d972..bd3dfe9a 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -202,6 +202,7 @@ static void capture_output(struct wl_client *client, wl_list_insert(&manager->frames, &frame->link); wl_list_init(&frame->output_swap_buffers.link); + wl_list_init(&frame->buffer_destroy.link); frame->format = WL_SHM_FORMAT_XRGB8888; frame->box = buffer_box; |