server: Free cursor buffers on close

pull/80/head
Andri Yngvason 2022-10-30 11:02:11 +00:00
parent adef210252
commit 48b070af5a
1 changed files with 3 additions and 0 deletions

View File

@ -1345,6 +1345,9 @@ void nvnc_close(struct nvnc* self)
if (self->display)
nvnc_display_unref(self->display);
if (self->cursor.buffer)
nvnc_fb_unref(self->cursor.buffer);
struct nvnc_client* tmp;
LIST_FOREACH_SAFE (client, &self->clients, link, tmp)
client_unref(client);