Commit f0c5c073 authored by QuentinArguillere's avatar QuentinArguillere
Browse files

Check that address was successfully created before unreferencing it

parent 64ac2c68
Pipeline #30122 passed with stage
in 12 minutes and 9 seconds
......@@ -313,7 +313,8 @@ static UICompositeViewDescription *compositeDescription = nil;
cell.adminButton.hidden = _create || (!_imAdmin && !cell.adminLabel.enabled) || ![_oldContacts containsObject:cell.uri];
cell.adminButton.userInteractionEnabled = _imAdmin;
cell.removeButton.hidden = !_create && !_imAdmin;
linphone_address_unref(addr);
if (addr)
linphone_address_unref(addr);
return cell;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment