mirror of
https://github.com/isar/rusqlite.git
synced 2025-06-15 16:02:36 +08:00
Use decrement_strong_count directly
This commit is contained in:
parent
01e8511c9f
commit
e911411921
@ -43,7 +43,7 @@ use crate::{Connection, Result};
|
|||||||
pub(crate) const ARRAY_TYPE: *const c_char = c"rarray".as_ptr();
|
pub(crate) const ARRAY_TYPE: *const c_char = c"rarray".as_ptr();
|
||||||
|
|
||||||
pub(crate) unsafe extern "C" fn free_array(p: *mut c_void) {
|
pub(crate) unsafe extern "C" fn free_array(p: *mut c_void) {
|
||||||
drop(Rc::from_raw(p as *const Vec<Value>));
|
Rc::decrement_strong_count(p as *const Vec<Value>);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Array parameter / pointer
|
/// Array parameter / pointer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user