win32u: Don't use free_region in alloc_region.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2021-11-08 14:49:14 +01:00 committed by Alexandre Julliard
parent ed928dc49e
commit 2d1e3e5d13
1 changed files with 1 additions and 1 deletions

View File

@ -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;