mirror of
https://github.com/isar/rusqlite.git
synced 2025-10-08 12:32:20 +08:00
Use decrement_strong_count directly
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user