Skip to content

Commit 35ffdc2

Browse files
committed
Fixes #1103, mutex double lock acquisition possible in custom event watcher
1 parent a3b4e20 commit 35ffdc2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sdl2/event.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2913,6 +2913,7 @@ impl EventSender {
29132913
data1: Box::into_raw(event_box) as *mut c_void,
29142914
data2: ::std::ptr::null_mut(),
29152915
};
2916+
drop(cet);
29162917

29172918
self.push_event(event)?;
29182919

0 commit comments

Comments
 (0)