xfreerdp: fixed NULL windows destroying.

This commit is contained in:
roman-b 2011-09-05 23:42:18 +03:00
parent 01939cbd28
commit 0ec2777875

View File

@ -612,6 +612,9 @@ void xf_SetWindowVisibilityRects(xfInfo* xfi, xfWindow* window, RECTANGLE_16* re
void xf_DestroyWindow(xfInfo* xfi, xfWindow* window)
{
if (window == NULL)
return;
if (window->gc)
XFreeGC(xfi->display, window->gc);