mirror of https://github.com/ndarilek/tts-rs.git
Add `Drop` implementation.
This commit is contained in:
parent
47bfe768e6
commit
427ca027be
|
@ -132,3 +132,12 @@ impl Backend for NSSpeechSynthesizerBackend {
|
||||||
unimplemented!()
|
unimplemented!()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl Drop for NSSpeechSynthesizerBackend {
|
||||||
|
fn drop(&mut self) {
|
||||||
|
unsafe {
|
||||||
|
let _: Object = msg_send!(self.0, release);
|
||||||
|
let _: Object = msg_send!(self.1, release);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue