mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
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:
parent
e82ccd7648
commit
f6c9fa4d89
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue