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