mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Fix potential use-after-free (when device in use)
An instance must not delete itself.. Here ARDOUR::SystemExec::Terminated signal handler deleted the class that emitted the signal in the same thread.
This commit is contained in:
parent
958135ff26
commit
72057395eb
1 changed files with 1 additions and 1 deletions
|
|
@ -2425,7 +2425,7 @@ AlsaDeviceReservation::release_device ()
|
|||
_reservation_connection.drop_connections ();
|
||||
ARDOUR::SystemExec* tmp = _device_reservation;
|
||||
_device_reservation = 0;
|
||||
delete tmp;
|
||||
Glib::signal_idle().connect ([tmp] { delete tmp; return false; }, Glib::PRIORITY_HIGH_IDLE);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue