From 0bc911e26676e7e40b19c452922df58e24cb0e46 Mon Sep 17 00:00:00 2001 From: Andrew Wiltshire <62200778+AW1534@users.noreply.github.com> Date: Mon, 1 Jul 2024 15:29:15 +0100 Subject: [PATCH] Reduce Memory Leaks (#7345) --- src/core/NotePlayHandle.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/NotePlayHandle.cpp b/src/core/NotePlayHandle.cpp index 4ee30054a..729048c18 100644 --- a/src/core/NotePlayHandle.cpp +++ b/src/core/NotePlayHandle.cpp @@ -670,7 +670,9 @@ void NotePlayHandleManager::extend( int c ) void NotePlayHandleManager::free() { + delete s_available[0]; delete[] s_available; + s_available = nullptr; }