mirror of
https://github.com/htrefil/rkvm.git
synced 2024-11-16 07:47:24 +01:00
Fix Writer memory leak
This commit is contained in:
parent
742fb3db7f
commit
ec11f26c90
1 changed files with 8 additions and 0 deletions
|
@ -113,6 +113,14 @@ impl Writer {
|
|||
}
|
||||
}
|
||||
|
||||
impl Drop for Writer {
|
||||
fn drop(&mut self) {
|
||||
unsafe {
|
||||
glue::libevdev_uinput_destroy(self.uinput.as_ptr());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unsafe impl Send for Writer {}
|
||||
|
||||
pub struct WriterBuilder {
|
||||
|
|
Loading…
Reference in a new issue