mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-22 12:54:13 +00:00
engine: sdl: don't free NULL vidmodes
This commit is contained in:
parent
12dd225db2
commit
3b192ca490
@ -342,6 +342,9 @@ static void R_FreeVideoModes( void )
|
||||
{
|
||||
int i;
|
||||
|
||||
if( !vidmodes )
|
||||
return;
|
||||
|
||||
for( i = 0; i < num_vidmodes; i++ )
|
||||
Mem_Free( (char*)vidmodes[i].desc );
|
||||
Mem_Free( vidmodes );
|
||||
|
Loading…
x
Reference in New Issue
Block a user