[client] wayland: fix use after free bugs

This commit is contained in:
Geoffrey McRae
2023-11-11 11:33:51 +11:00
parent f6befb4567
commit 3c1405719c
2 changed files with 8 additions and 0 deletions

View File

@@ -475,6 +475,7 @@ void waylandCBRequest(LG_ClipboardData type)
close(data->fd);
free(data->buf);
free(data);
return;
}
wlCb.currentRead = data;