From 48b070af5af03cf84e0dcf498eecdb5b05648b30 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 30 Oct 2022 11:02:11 +0000 Subject: [PATCH] server: Free cursor buffers on close --- src/server.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.c b/src/server.c index b099f86..c88aa31 100644 --- a/src/server.c +++ b/src/server.c @@ -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);