#[unsafe(no_mangle)]pub extern "C" fn wxd_Variant_Free_Rust_String(str_ptr: *mut c_char)Expand description
Function to properly free a string that was allocated by Rust using CString::into_raw(). This must be called instead of C’s free() for strings allocated by Rust.
§Safety
The caller (C++) must ensure str_ptr is a valid pointer obtained from
CString::into_raw() and that it hasn’t been freed already.