shithub: ft2play

Download patch

ref: 0afda63c7a2e79fa52ba835c9a66743b65da229b
parent: 69523b24decd9b4c8aaf070b71a4da68e0dd1bfa
parent: 02c0b2727efa9bbc2c0a30f7169e176f1387afb7
author: Olav Sørensen <olav.sorensen@live.no>
date: Fri Nov 27 06:01:54 EST 2020

Merge pull request #1 from alltinker/main

Minor fix for freeInstr(), preventing a crash on repeated calls.

--- a/pmplay.c
+++ b/pmplay.c
@@ -340,7 +340,7 @@
 	}
 
 	free(ins);
-	ins = NULL;
+	instr[nr] = NULL;
 }
 
 static void freeAllInstr(void)