Merge pull request #4426 from akallabeth/pointer_null_fix
Check if xfreerdp window != NULL
This commit is contained in:
commit
bc4b57c08d
@ -1318,7 +1318,7 @@ static void xf_post_disconnect(freerdp* instance)
|
||||
xfc->xfDisp = NULL;
|
||||
}
|
||||
|
||||
if (xfc->drawable == xfc->window->handle)
|
||||
if ((xfc->window != NULL) && (xfc->drawable == xfc->window->handle))
|
||||
xfc->drawable = NULL;
|
||||
else
|
||||
xf_DestroyDummyWindow(xfc, xfc->drawable);
|
||||
|
Loading…
Reference in New Issue
Block a user