fix(rust_bindings): use-after-free for Language::into_raw()
This commit is contained in:
parent
3d396e120b
commit
576e4c7d06
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ impl Language {
|
|||
|
||||
/// Consumes the [Language], returning a raw pointer to the underlying C structure.
|
||||
pub fn into_raw(self) -> *const ffi::TSLanguage {
|
||||
self.0
|
||||
ManuallyDrop::new(self).0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue