Mixer: Fix an invalid read on strip destruction due to a missing lock.
This commit is contained in:
parent
219c3b1e9b
commit
080100d3b4
|
@ -94,6 +94,7 @@ Mixer_Strip::~Mixer_Strip ( )
|
|||
{
|
||||
DMESSAGE( "Destroying mixer strip" );
|
||||
|
||||
_chain->engine()->lock();
|
||||
|
||||
/* make sure this gets destroyed before the chain */
|
||||
fader_tab->clear();
|
||||
|
|
|
@ -71,6 +71,8 @@ Module::Module ( ) : Fl_Group( 0, 0, 50, 50, "Unnamed" )
|
|||
|
||||
Module::~Module ( )
|
||||
{
|
||||
/* we assume that the engine for this chain is already locked */
|
||||
|
||||
if ( _editor )
|
||||
{
|
||||
delete _editor;
|
||||
|
|
Loading…
Reference in New Issue