The return of the Mixbus Send-options (allow aux-feedback override)
[ardour.git] / libs / pbd / event_loop.cc
index f72255dd7296b868c23e39016a7f6c7dd05f1e76..e003a8d37a0ccaa635c6c8eab757dbdc939d326f 100644 (file)
@@ -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()
 {