Fix possible segfault

This commit is contained in:
bnnm 2016-12-27 23:18:41 +01:00
parent 2807d2fbab
commit ad3b081681

View File

@ -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);