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

oldstable
Alexandre Julliard 2012-10-21 12:18:46 +02:00
parent 5fae649bdf
commit b0ba7c765e
1 changed files with 4 additions and 0 deletions

View File

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