untested saving code and memory leak fix

This commit is contained in:
tildearrow 2021-12-15 14:15:44 -05:00
parent 2879b5e4d0
commit ebb28d912b
12 changed files with 363 additions and 107 deletions

18
src/engine/song.cpp Normal file
View file

@ -0,0 +1,18 @@
#include "song.h"
void DivSong::unload() {
for (DivInstrument* i: ins) {
delete i;
}
ins.clear();
for (DivWavetable* i: wave) {
delete i;
}
wave.clear();
for (DivSample* i: sample) {
delete i;
}
sample.clear();
}