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:
parent
8a14c555a4
commit
bb7cf33081
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user