From 4d306c3855244c38721805e28bd68a005026b24d Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sat, 25 Jan 2014 11:32:03 +0100 Subject: [PATCH 1/2] 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; } } From 3f26fdfbf1bc85b47067bb48a7d2e772817f76cf Mon Sep 17 00:00:00 2001 From: Lukas W Date: Sat, 25 Jan 2014 14:42:03 +0100 Subject: [PATCH 2/2] Update AUTHORS: Add Lukas W [skip ci] Adding myself to the author list somehow feels awkward. --- AUTHORS | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AUTHORS b/AUTHORS index 086d6c3a2..8650caad1 100644 --- a/AUTHORS +++ b/AUTHORS @@ -17,6 +17,10 @@ Danny McRae Javier Serrano Polo Development + +Lukas Wohlschläger + + Development Andrew Kelley