fix(rust_bindings): use-after-free for Language::into_raw()

This commit is contained in:
Vhyrro 2023-03-13 19:06:12 +01:00 committed by Andrew Hlynskyi
parent 3d396e120b
commit 576e4c7d06

View file

@ -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
}
}