diff --git a/Classes/ChatRoomViewController.m b/Classes/ChatRoomViewController.m index 22418207e..2f882f1df 100644 --- a/Classes/ChatRoomViewController.m +++ b/Classes/ChatRoomViewController.m @@ -198,11 +198,8 @@ static UICompositeViewDescription *compositeDescription = nil; } [messageField resignFirstResponder]; - - if(chatRoom != NULL) { - linphone_chat_room_destroy(chatRoom); - chatRoom = NULL; - } + + chatRoom = NULL; [self setComposingVisible:FALSE withDelay:0]; // will hide the "user is composing.." message