Browse Source

engine: sdl: don't free NULL vidmodes

pull/2/head
a1batross 4 years ago
parent
commit
3b192ca490
  1. 3
      engine/platform/sdl/vid_sdl.c

3
engine/platform/sdl/vid_sdl.c

@ -342,6 +342,9 @@ static void R_FreeVideoModes( void ) @@ -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…
Cancel
Save