From 4d306c3855244c38721805e28bd68a005026b24d Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sat, 25 Jan 2014 11:32:03 +0100 Subject: [PATCH] Fix mismatched delete delete was called on memory allocated with malloc() which results in undefined behaviour. Fixed by using free() instead of delete. --- src/core/song.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index a32f453d7..f49f1bb31 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -201,7 +201,7 @@ song::~song() } if( m_SncVSTplug != NULL ) { - delete m_SncVSTplug; + free( m_SncVSTplug ); m_SncVSTplug = NULL; } }