Files
chatmail-core/deltachat-ffi
d2weber a95bf77868 fix(ffi): don't steal Arc in dc_jsonrpc_init (#7962)
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.
2026-03-07 10:14:01 +01:00
..
2019-04-28 18:06:26 +03:00
2022-07-01 12:20:20 +02:00
2026-02-27 01:16:34 +00:00
2019-08-26 19:17:58 +02:00

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