mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-12-02 09:02:36 +00:00
fclose is not required with close_on_free=true
This commit is contained in:
parent
bf286dc952
commit
fbde7b753f
1 changed files with 2 additions and 1 deletions
|
@ -428,12 +428,13 @@ OGG_PlayTrack(int trackNo)
|
||||||
}
|
}
|
||||||
|
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
|
// fclose is not required on error with close_on_free=true
|
||||||
ogg_file = stb_vorbis_open_file(f, true, &res, NULL);
|
ogg_file = stb_vorbis_open_file(f, true, &res, NULL);
|
||||||
|
|
||||||
if (res != 0)
|
if (res != 0)
|
||||||
{
|
{
|
||||||
Com_Printf("%s: '%s' is not a valid Ogg Vorbis file (error %i).\n", __func__, ogg_tracks[trackNo], res);
|
Com_Printf("%s: '%s' is not a valid Ogg Vorbis file (error %i).\n", __func__, ogg_tracks[trackNo], res);
|
||||||
fclose(f);
|
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue