mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 11:36:02 +00:00
gdi32: Mark objects as not used before clearing handles table in emf_reset.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=54936
This commit is contained in:
parent
410b0f4d51
commit
55b9b2f675
|
@ -2521,7 +2521,11 @@ static void emf_reset( DC_ATTR *dc_attr, const RECT *rect )
|
||||||
{
|
{
|
||||||
struct emf *emf = get_dc_emf( dc_attr );
|
struct emf *emf = get_dc_emf( dc_attr );
|
||||||
HDC hdc = dc_attr_handle( dc_attr );
|
HDC hdc = dc_attr_handle( dc_attr );
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < emf->handles_size; i++)
|
||||||
|
if (emf->handles[i])
|
||||||
|
GDI_hdc_not_using_object( emf->handles[i], dc_attr_handle( emf->dc_attr ));
|
||||||
memset( emf->handles, 0, emf->handles_size * sizeof(emf->handles[0]) );
|
memset( emf->handles, 0, emf->handles_size * sizeof(emf->handles[0]) );
|
||||||
emf->cur_handles = 1;
|
emf->cur_handles = 1;
|
||||||
emf->file = 0;
|
emf->file = 0;
|
||||||
|
|
Loading…
Reference in a new issue