From 69bc17d6e43b763ba87ea9f0df1480af5f3349e2 Mon Sep 17 00:00:00 2001 From: Stian Skjelstad Date: Mon, 13 May 2024 22:46:37 +0200 Subject: [PATCH] [playxm] Avoid double free(), could occure if trying to load an invalid MOD file --- playxm/xmplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/playxm/xmplay.c b/playxm/xmplay.c index ee88f4a2..4b6e3988 100644 --- a/playxm/xmplay.c +++ b/playxm/xmplay.c @@ -1563,6 +1563,7 @@ OCP_INTERNAL void xmpStopModule (struct cpifaceSessionAPI_t *cpifaceSession) { cpifaceSession->mcpDevAPI->ClosePlayer (cpifaceSession); free(que); + que=0; } OCP_INTERNAL void xmpGetGlobInfo (int *tmp, int *bpm, int *gvol)