mirror of
https://github.com/ndarilek/tts-rs.git
synced 2024-11-17 12:19:37 +00:00
Add Drop
implementation.
This commit is contained in:
parent
47bfe768e6
commit
427ca027be
|
@ -132,3 +132,12 @@ impl Backend for NSSpeechSynthesizerBackend {
|
|||
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
Block a user