[PATCH] user32: Dont leak region on error
Alistair Leslie-Hughes
leslie_alistair at hotmail.com
Fri Mar 4 00:38:17 CST 2016
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
---
dlls/user32/painting.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c
index 1dea98d..5855314 100644
--- a/dlls/user32/painting.c
+++ b/dlls/user32/painting.c
@@ -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;
}
--
1.9.1
More information about the wine-patches
mailing list