gdi32: Remove a redundant NULL check before HeapFree().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
59ba31d1fc
commit
0b96693f75
|
@ -175,7 +175,7 @@ static BOOL EMFDRV_DeleteDC( PHYSDEV dev )
|
||||||
EMFDRV_PDEVICE *physDev = get_emf_physdev( dev );
|
EMFDRV_PDEVICE *physDev = get_emf_physdev( dev );
|
||||||
UINT index;
|
UINT index;
|
||||||
|
|
||||||
if (physDev->emh) HeapFree( GetProcessHeap(), 0, physDev->emh );
|
HeapFree( GetProcessHeap(), 0, physDev->emh );
|
||||||
for(index = 0; index < physDev->handles_size; index++)
|
for(index = 0; index < physDev->handles_size; index++)
|
||||||
if(physDev->handles[index])
|
if(physDev->handles[index])
|
||||||
GDI_hdc_not_using_object(physDev->handles[index], dev->hdc);
|
GDI_hdc_not_using_object(physDev->handles[index], dev->hdc);
|
||||||
|
|
Loading…
Reference in New Issue