Merge pull request #28 from dorianj/master

gdi: in gdi_free, use gdi_DeleteDC to release gdi->hdc instead of incorrect gdi_DeleteObject (fix memory leak and crash when calling gdi_free)
This commit is contained in:
Otavio Salvador 2011-07-27 06:48:38 -07:00
commit 82b1d3af14

View File

@ -1186,7 +1186,7 @@ void gdi_free(rdpInst* inst)
if (gdi)
{
gdi_bitmap_free(gdi->primary);
gdi_DeleteObject((HGDIOBJECT) gdi->hdc);
gdi_DeleteDC(gdi->hdc);
free(gdi->clrconv);
free(gdi);
}