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:
commit
82b1d3af14
@ -1186,7 +1186,7 @@ void gdi_free(rdpInst* inst)
|
|||||||
if (gdi)
|
if (gdi)
|
||||||
{
|
{
|
||||||
gdi_bitmap_free(gdi->primary);
|
gdi_bitmap_free(gdi->primary);
|
||||||
gdi_DeleteObject((HGDIOBJECT) gdi->hdc);
|
gdi_DeleteDC(gdi->hdc);
|
||||||
free(gdi->clrconv);
|
free(gdi->clrconv);
|
||||||
free(gdi);
|
free(gdi);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user