refactor(ffi): replace implicit drop in cffi with explicit drop(Arc::from_raw(var)) (#7664)

for improved clarity and consistency with existing code.
This commit is contained in:
Simon Laux
2026-01-05 19:27:48 +00:00
committed by GitHub
parent fdb583b5e9
commit 9d7db20225

View File

@@ -4773,7 +4773,7 @@ pub unsafe extern "C" fn dc_accounts_unref(accounts: *const dc_accounts_t) {
eprintln!("ignoring careless call to dc_accounts_unref()");
return;
}
let _ = Arc::from_raw(accounts);
drop(Arc::from_raw(accounts));
}
#[no_mangle]