Commit b0ba7c76 authored by Alexandre Julliard's avatar Alexandre Julliard

gdi32: Update the ref count of stock objects when deleting a DC.

parent 5fae649b
......@@ -162,6 +162,10 @@ void free_dc_ptr( DC *dc )
dc->physDev = physdev->next;
physdev->funcs->pDeleteDC( physdev );
}
GDI_dec_ref_count( dc->hPen );
GDI_dec_ref_count( dc->hBrush );
GDI_dec_ref_count( dc->hFont );
if (dc->hBitmap) GDI_dec_ref_count( dc->hBitmap );
free_gdi_handle( dc->hSelf );
free_dc_state( dc );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment