Check for segfault

This commit is contained in:
bnnm 2016-12-06 11:53:54 +01:00
parent 80c72166e5
commit c5066fdd09

View File

@ -587,7 +587,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);