Merge pull request #4426 from akallabeth/pointer_null_fix

Check if xfreerdp window != NULL
This commit is contained in:
Martin Fleisz 2018-02-13 14:37:13 +01:00 committed by GitHub
commit bc4b57c08d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);