Fix crash with resizing

This commit is contained in:
Nexarian 2024-02-02 18:53:41 -05:00
parent 33539c1d8b
commit 75b41afa04

View File

@ -4114,6 +4114,10 @@ server_egfx_cmd(struct xrdp_mod *mod,
wm = (struct xrdp_wm *)(mod->wm);
mm = wm->mm;
if (mm->encoder == NULL)
{
return 0;
}
enc = g_new0(struct xrdp_enc_data, 1);
if (enc == NULL)
{