fix a crash caused by not checking if MackieControlProtocol::_surfaces_state exists
I forgot to add this check when i changed the member variable to a pointer.
This commit is contained in:
@@ -668,7 +668,9 @@ MackieControlProtocol::create_surfaces ()
|
||||
return -1;
|
||||
}
|
||||
|
||||
surface->set_state (*_surfaces_state, _surfaces_version);
|
||||
if (_surfaces_state) {
|
||||
surface->set_state (*_surfaces_state, _surfaces_version);
|
||||
}
|
||||
|
||||
{
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
|
||||
Reference in New Issue
Block a user