From 2d1e3e5d13bf0b9c295889169f13e4d7765fe088 Mon Sep 17 00:00:00 2001 From: Jacek Caban Date: Mon, 8 Nov 2021 14:49:14 +0100 Subject: [PATCH] win32u: Don't use free_region in alloc_region. Signed-off-by: Jacek Caban Signed-off-by: Huw Davies Signed-off-by: Alexandre Julliard --- dlls/win32u/region.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/win32u/region.c b/dlls/win32u/region.c index 8555be96f72..e3e840a1554 100644 --- a/dlls/win32u/region.c +++ b/dlls/win32u/region.c @@ -451,7 +451,7 @@ static WINEREGION *alloc_region( INT n ) if (rgn && !init_region( rgn, n )) { - free_region( rgn ); + free( rgn ); rgn = NULL; } return rgn;