Skip to content

fix(ffi): support custom allocators in event string getters - #8672

Open
trufae wants to merge 1 commit into
chatmail:mainfrom
trufae:fix-ffi-event-strings
Open

fix(ffi): support custom allocators in event string getters#8672
trufae wants to merge 1 commit into
chatmail:mainfrom
trufae:fix-ffi-event-strings

Conversation

@trufae

@trufae trufae commented Sep 4, 2026

Copy link
Copy Markdown

Event string getters returned Rust-allocated pointers that dc_str_unref() frees with libc. This breaks with custom Rust allocators, so allocate the strings with strdup() instead.

Event string getters returned Rust-allocated pointers that dc_str_unref()
frees with libc. This breaks with custom Rust allocators, so allocate the
strings with strdup() instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants