mirror of
https://github.com/isar/rusqlite.git
synced 2025-03-29 09:02:57 +08:00
commit
f884961d35
@ -759,10 +759,9 @@ impl Values<'_> {
|
||||
None
|
||||
} else {
|
||||
Some(unsafe {
|
||||
let rc = array::Array::from_raw(ptr as *const Vec<Value>);
|
||||
let array = rc.clone();
|
||||
array::Array::into_raw(rc); // don't consume it
|
||||
array
|
||||
let ptr = ptr as *const Vec<Value>;
|
||||
array::Array::increment_strong_count(ptr); // don't consume it
|
||||
array::Array::from_raw(ptr)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user