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:
Paul Davis
2013-12-14 10:35:18 -05:00
parent e82ccd7648
commit f6c9fa4d89

View File

@@ -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);