From d33f4b1b5165306832c88ce2fd9a327f439d0375 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 29 Jan 2019 07:36:28 +0000 Subject: [PATCH] Use FIX_BUGS to fix that one delete[] bug in Organya Fixes #31 --- src/Organya.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Organya.cpp b/src/Organya.cpp index 99cf654c..3ce94914 100644 --- a/src/Organya.cpp +++ b/src/Organya.cpp @@ -78,7 +78,11 @@ void OrganyaReleaseNote() { if(info.tdata[i].note_p != NULL) { +#ifdef FIX_BUGS + delete[] info.tdata[i].note_p; +#else delete info.tdata[i].note_p; // should be delete[] +#endif info.tdata[i].note_p = NULL; } }