untested saving code and memory leak fix
This commit is contained in:
parent
2879b5e4d0
commit
ebb28d912b
12 changed files with 363 additions and 107 deletions
18
src/engine/song.cpp
Normal file
18
src/engine/song.cpp
Normal 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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue