Fix mismatched delete
delete was called on memory allocated with malloc() which results in undefined behaviour. Fixed by using free() instead of delete.
This commit is contained in:
@@ -201,7 +201,7 @@ song::~song()
|
||||
}
|
||||
if( m_SncVSTplug != NULL )
|
||||
{
|
||||
delete m_SncVSTplug;
|
||||
free( m_SncVSTplug );
|
||||
m_SncVSTplug = NULL;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user