mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Reap invalidation records
This commit is contained in:
parent
fbae5f5ffd
commit
8f8d0a70d8
2 changed files with 13 additions and 1 deletions
|
|
@ -45,6 +45,18 @@ EventLoop::EventLoop (string const& name)
|
|||
{
|
||||
}
|
||||
|
||||
EventLoop::~EventLoop ()
|
||||
{
|
||||
trash.sort();
|
||||
trash.unique();
|
||||
for (std::list<InvalidationRecord*>::iterator r = trash.begin(); r != trash.end(); ++r) {
|
||||
if (!(*r)->in_use ()) {
|
||||
delete *r;
|
||||
}
|
||||
}
|
||||
trash.clear ();
|
||||
}
|
||||
|
||||
EventLoop*
|
||||
EventLoop::get_event_loop_for_thread()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue