ref: 7339b2ab5353720f236b1d3b94746c0799524301
parent: bdd2e5d63b87be157c96ab5974f6ab6d85a6ed4a
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Sep 9 17:19:54 EDT 2020
Tiny code cleanup
--- a/src/ft2_replayer.c
+++ b/src/ft2_replayer.c
@@ -2386,7 +2386,6 @@
for (int32_t i = 0; i < MAX_SMP_PER_INST; i++) // free sample data
{
sampleTyp *s = &instr[nr]->samp[i];
-
if (s->origPek != NULL)
free(s->origPek);
}
@@ -2407,7 +2406,6 @@
for (int8_t j = 0; j < MAX_SMP_PER_INST; j++) // free sample data
{
sampleTyp *s = &instr[i]->samp[j];
-
if (s->origPek != NULL)
free(s->origPek);
}
@@ -2692,6 +2690,8 @@
{
freeAllInstr();
freeAllPatterns();
+
+ // free reserved instruments
if (instr[0] != NULL)
{