Merge pull request #117 from deltachat/unref-str

feat(ffi): add dc_str_unref
This commit is contained in:
Friedel Ziegelmayer
2019-06-03 13:37:54 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -1173,6 +1173,9 @@ int64_t dc_lot_get_timestamp (const dc_lot_t*);
#define DC_STR_LOCATION 66
#define DC_STR_COUNT 66
void dc_str_unref (char*);
/*
* @}
*/

View File

@@ -1538,3 +1538,8 @@ pub unsafe extern "C" fn dc_lot_get_id(lot: *mut dc_lot::dc_lot_t) -> libc::uint
pub unsafe extern "C" fn dc_lot_get_timestamp(lot: *mut dc_lot::dc_lot_t) -> i64 {
dc_lot::dc_lot_get_timestamp(lot)
}
#[no_mangle]
pub unsafe extern "C" fn dc_str_unref(s: *mut libc::c_char) {
libc::free(s as *mut _)
}