mirror of https://github.com/FreeRDP/FreeRDP
gdi: in gdi_free, use gdi_DeleteDC to release gdi->hdc instead of incorrect gdi_DeleteObject
This commit is contained in:
parent
4507ed72b2
commit
646257ed8e
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue