xfreerdp: fix segfault with --gdi sw on disconnect

This commit is contained in:
Marc-André Moreau 2012-02-09 21:01:13 -05:00
parent 8e88983a62
commit fdfc817fb6
1 changed files with 3 additions and 1 deletions

View File

@ -904,7 +904,9 @@ void xf_window_free(xfInfo* xfi)
}
freerdp_clrconv_free(xfi->clrconv);
gdi_DeleteDC(xfi->hdc);
if (xfi->hdc)
gdi_DeleteDC(xfi->hdc);
xf_tsmf_uninit(xfi);
xf_cliprdr_uninit(xfi);