mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-25 23:06:04 +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) 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user