mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 21:46:35 +03:00
dc_jsonrpc_init called Arc::from_raw on the account_manager pointer, which took ownership of the caller's refcount. When the local Arc dropped at the end of the function, the refcount was decremented, leaving the C side's pointer with a stolen refcount. This caused a use-after-free race between dc_accounts_unref and dc_jsonrpc_unref at shutdown. Wrap in ManuallyDrop to prevent the implicit drop, keeping the caller's refcount intact. Regression introduced in #7662.
Delta Chat C Interface
Installation
see Installing libdeltachat system wide in ../README.md
Documentation
To generate the C Interface documentation,
call doxygen in the deltachat-ffi directory
and browse the html subdirectory.
If thinks work, the documentation is also available online at https://c.delta.chat