fix memory leak

This commit is contained in:
tildearrow 2021-12-16 02:21:43 -05:00
parent 089304edbd
commit ce71c2e9ad
5 changed files with 92 additions and 11 deletions

View file

@ -7,6 +7,9 @@
#include "blip_buf.h"
#include <mutex>
#define DIV_VERSION "0.1"
#define DIV_ENGINE_VERSION 11
enum DivStatusView {
DIV_STATUS_NOTHING=0,
DIV_STATUS_PATTERN,
@ -103,7 +106,7 @@ class DivEngine {
DivInstrument* getIns(int index);
DivWavetable* getWave(int index);
// load a .dmf.
bool load(void* f, size_t length);
bool load(unsigned char* f, size_t length);
// save as .dmf.
SafeWriter* save();