From ad3b08168150e43e50e14c2a8a6737c1c55f0c6a Mon Sep 17 00:00:00 2001 From: bnnm Date: Tue, 27 Dec 2016 23:18:41 +0100 Subject: [PATCH] Fix possible segfault --- src/meta/ps3_msf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meta/ps3_msf.c b/src/meta/ps3_msf.c index 7fbf617b..169aab64 100644 --- a/src/meta/ps3_msf.c +++ b/src/meta/ps3_msf.c @@ -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);