mirror of
https://github.com/chatmail/core.git
synced 2026-05-16 21:36:30 +03:00
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:
@@ -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()");
|
eprintln!("ignoring careless call to dc_accounts_unref()");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
let _ = Arc::from_raw(accounts);
|
drop(Arc::from_raw(accounts));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
|
|||||||
Reference in New Issue
Block a user