mirror of
https://github.com/chatmail/core.git
synced 2026-04-17 13:36:30 +03:00
fix failing array asserts #355
This commit is contained in:
@@ -1307,7 +1307,9 @@ pub unsafe fn dc_get_next_media(
|
||||
}
|
||||
}
|
||||
|
||||
dc_array_unref(list);
|
||||
if !list.is_null() {
|
||||
dc_array_unref(list);
|
||||
}
|
||||
dc_msg_unref(msg);
|
||||
ret_msg_id
|
||||
}
|
||||
|
||||
@@ -1506,8 +1506,12 @@ unsafe fn create_or_lookup_adhoc_group(
|
||||
ret_chat_id_blocked: *mut libc::c_int,
|
||||
chat_id: u32,
|
||||
chat_id_blocked: i32| {
|
||||
dc_array_unref(member_ids);
|
||||
dc_array_unref(chat_ids);
|
||||
if !member_ids.is_null() {
|
||||
dc_array_unref(member_ids);
|
||||
}
|
||||
if !chat_ids.is_null() {
|
||||
dc_array_unref(chat_ids);
|
||||
}
|
||||
free(chat_ids_str as *mut libc::c_void);
|
||||
free(grpid as *mut libc::c_void);
|
||||
free(grpname as *mut libc::c_void);
|
||||
|
||||
Reference in New Issue
Block a user