1
0
Fork 0
forked from wry/wry

surface: explicitly destroy wait handles when breaking loops

This commit is contained in:
Julian Orth 2024-04-06 22:01:55 +02:00
parent c659b478cf
commit 9ead72429e

View file

@ -116,6 +116,9 @@ pub enum ClearReason {
fn break_loops(list: &LinkedList<Entry>) {
for entry in list.iter() {
entry.link.take();
if let EntryKind::Commit(c) = &entry.kind {
c.wait_handles.take();
}
}
}