user32: Don't leak region on error.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2016-03-04 17:38:17 +11:00 committed by Alexandre Julliard
parent 3762c294d9
commit 5fa0422227
1 changed files with 1 additions and 1 deletions

View File

@ -1400,8 +1400,8 @@ INT WINAPI ExcludeUpdateRgn( HDC hdc, HWND hwnd )
MapWindowPoints( 0, hwnd, &pt, 1 );
OffsetRgn( update_rgn, -pt.x, -pt.y );
ret = ExtSelectClipRgn( hdc, update_rgn, RGN_DIFF );
DeleteObject( update_rgn );
}
DeleteObject( update_rgn );
return ret;
}