mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
reset shared_ptr to master surface when clearing surfaces, to ensure Surface destructor is called
This commit is contained in:
parent
98b5d5a808
commit
9d7b5f6df9
1 changed files with 1 additions and 0 deletions
|
|
@ -1751,6 +1751,7 @@ MackieControlProtocol::clear_surfaces ()
|
||||||
{
|
{
|
||||||
clear_ports ();
|
clear_ports ();
|
||||||
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
Glib::Threads::Mutex::Lock lm (surfaces_lock);
|
||||||
|
_master_surface.reset ();
|
||||||
surfaces.clear ();
|
surfaces.clear ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue