fix failing array asserts #355

This commit is contained in:
holger krekel
2019-08-13 22:30:14 +02:00
parent 033ebc7ce3
commit ba381d0d0b
2 changed files with 9 additions and 3 deletions

View File

@@ -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
}