mirror of
https://github.com/vgmstream/vgmstream.git
synced 2025-01-29 19:37:30 +01:00
Fix possible segfault
This commit is contained in:
parent
2807d2fbab
commit
ad3b081681
@ -228,7 +228,7 @@ fail:
|
||||
#ifdef VGM_USE_FFMPEG
|
||||
if (ffmpeg_data) {
|
||||
free_ffmpeg(ffmpeg_data);
|
||||
vgmstream->codec_data = NULL;
|
||||
if (vgmstream) vgmstream->codec_data = NULL;
|
||||
}
|
||||
#endif
|
||||
if (vgmstream) close_vgmstream(vgmstream);
|
||||
|
Loading…
x
Reference in New Issue
Block a user