From 0656effd3507e924deb2941ac4a0db463705e820 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Thu, 15 Feb 2018 11:38:05 +0100 Subject: [PATCH] fix crash --- Classes/PhoneMainView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PhoneMainView.m b/Classes/PhoneMainView.m index 4a5ed6f84..25b4641d0 100644 --- a/Classes/PhoneMainView.m +++ b/Classes/PhoneMainView.m @@ -861,13 +861,13 @@ static RootViewManager *rootViewManagerInstance = nil; #pragma mark - Chat room Functions -- (void) getOrCreateOneToOneChatRoom:(const LinphoneAddress *)remoteAddress waitView:(UIView *)waitView { +- (void)getOrCreateOneToOneChatRoom:(const LinphoneAddress *)remoteAddress waitView:(UIView *)waitView { const LinphoneAddress *local = linphone_proxy_config_get_contact(linphone_core_get_default_proxy_config(LC)); LinphoneChatRoom *room = linphone_core_find_one_to_one_chat_room(LC, local, remoteAddress); if (!room) { bctbx_list_t *addresses = bctbx_list_new((void*)remoteAddress); [self createChatRoomWithSubject:LINPHONE_DUMMY_SUBJECT addresses:addresses andWaitView:waitView]; - bctbx_list_free_with_data(addresses, (void (*)(void *))linphone_address_unref); + bctbx_list_free(addresses); return; } ChatConversationView *view = VIEW(ChatConversationView);