leapmotion / autowiring

A C++ Inversion of Control Framework
http://autowiring.io/
Apache License 2.0
148 stars 17 forks source link

Fix leak in DispatchQueue::Abort #954

Closed codemercenary closed 8 years ago

codemercenary commented 8 years ago

This is not a true leak, but rather technical leak that exists because things are not destroyed at the expected time. Delayed dispatchers attached to a DispatchQueue are not deleted when the Abort call completes. They are eventually destroyed in ~DispatchQueue, but they should be instead destroyed as soon as it is possible to know that's needed.