13
0

reset shared_ptr to master surface when clearing surfaces, to ensure Surface destructor is called

This commit is contained in:
Paul Davis 2015-10-03 13:50:59 -04:00
parent 98b5d5a808
commit 9d7b5f6df9

View File

@ -1751,6 +1751,7 @@ MackieControlProtocol::clear_surfaces ()
{
clear_ports ();
Glib::Threads::Mutex::Lock lm (surfaces_lock);
_master_surface.reset ();
surfaces.clear ();
}