gdi: in gdi_free, use gdi_DeleteDC to release gdi->hdc instead of incorrect gdi_DeleteObject

This commit is contained in:
Dorian Johnson 2011-07-27 08:45:44 -05:00
parent 4507ed72b2
commit 646257ed8e
1 changed files with 1 additions and 1 deletions

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