aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-07-13 12:49:12 -0700
committerGitHub <noreply@github.com>2018-07-13 12:49:12 -0700
commit4984ea49eeaa292d66be9e535d93a4d8185f3e18 (patch)
tree39f9f76bc960518988093c6c6684a77be21a2063
parentb902c2bd7c012363aad62d414622b2a1b81d5cb5 (diff)
parent935a3f2ebb026717b04fd6b2e2c7d0445e3f2f0f (diff)
Merge pull request #1132 from emersion/fix-screencopy-frame-error
screencopy: fix segfault when client supplies invalid buffer
-rw-r--r--types/wlr_screencopy_v1.c1
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;