reset shared_ptr to master surface when clearing surfaces, to ensure Surface destructor is called
This commit is contained in:
parent
98b5d5a808
commit
9d7b5f6df9
@ -1751,6 +1751,7 @@ MackieControlProtocol::clear_surfaces ()
|
||||
{
|
||||
clear_ports ();
|
||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||
_master_surface.reset ();
|
||||
surfaces.clear ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user