diff --git a/libfreerdp-gdi/gdi.c b/libfreerdp-gdi/gdi.c index 369d51396..3a3d2e3f4 100644 --- a/libfreerdp-gdi/gdi.c +++ b/libfreerdp-gdi/gdi.c @@ -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); }