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:
Lukas W
2014-01-25 11:32:03 +01:00
parent 304f36fac8
commit 4d306c3855

View File

@@ -201,7 +201,7 @@ song::~song()
}
if( m_SncVSTplug != NULL )
{
delete m_SncVSTplug;
free( m_SncVSTplug );
m_SncVSTplug = NULL;
}
}