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:
parent
ed928dc49e
commit
2d1e3e5d13
|
@ -451,7 +451,7 @@ static WINEREGION *alloc_region( INT n )
|
||||||
|
|
||||||
if (rgn && !init_region( rgn, n ))
|
if (rgn && !init_region( rgn, n ))
|
||||||
{
|
{
|
||||||
free_region( rgn );
|
free( rgn );
|
||||||
rgn = NULL;
|
rgn = NULL;
|
||||||
}
|
}
|
||||||
return rgn;
|
return rgn;
|
||||||
|
|
Loading…
Reference in New Issue