diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-14 10:35:18 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-12-14 11:10:54 -0500 |
commit | f6c9fa4d89ee8b5445b5e60b2ce114632bd8d4af (patch) | |
tree | ced797869f5c145946ce36f5c75f3032d64d02f2 | |
parent | e82ccd76484a16ed01baa49a16d37e39afdf3482 (diff) |
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.
-rw-r--r-- | libs/surfaces/mackie/mackie_control_protocol.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaces/mackie/mackie_control_protocol.cc b/libs/surfaces/mackie/mackie_control_protocol.cc index 9711f5dfc2..b2cdae334f 100644 --- a/libs/surfaces/mackie/mackie_control_protocol.cc +++ b/libs/surfaces/mackie/mackie_control_protocol.cc @@ -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); |