Merge pull request #2962 from matt335672/fix_egfx_disconnect

GFX: Fix disconnect on resize of busy windows
This commit is contained in:
matt335672 2024-02-23 15:34:01 +00:00 committed by GitHub
commit b79a7690fa
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4150,11 +4150,13 @@ server_egfx_cmd(struct xrdp_mod *mod,
mm = wm->mm;
if (mm->encoder == NULL)
{
// This can happen when we are in the resize state machine, if
// there are messages queued up by the X server
if (data != NULL)
{
g_munmap(data, data_bytes);
}
return 1;
return 0;
}
enc = g_new0(struct xrdp_enc_data, 1);
if (enc == NULL)