GUACAMOLE-1903: set rcMask to NULL

set rcMask to NULL to prevent double-free errors occuring in libvncclient 0.9.13 and up
This commit is contained in:
Simon Vogl 2024-01-18 16:26:50 +01:00 committed by Simon Vogl
parent 8a14c555a4
commit bb7cf33081

View File

@ -124,6 +124,9 @@ void guac_vnc_cursor(rfbClient* client, int x, int y, int w, int h, int bpp) {
guac_mem_free(buffer);
/* libvncclient does not free rcMask as it does rcSource */
free(client->rcMask);
if (client->rcMask) {
free(client->rcMask);
client->rcMask = NULL;
}
}