Remove call session listener when destroying client group chat room.

This commit is contained in:
Ghislain MARY 2018-02-15 13:59:21 +01:00
parent b9c2b8c9a9
commit e8da88c543
2 changed files with 7 additions and 0 deletions

View file

@ -208,6 +208,11 @@ RemoteConference(core, me->getAddress(), nullptr) {
dConference->eventHandler->subscribe(getChatRoomId());
}
ClientGroupChatRoom::~ClientGroupChatRoom () {
L_D();
d->setCallSessionListener(nullptr);
}
shared_ptr<Core> ClientGroupChatRoom::getCore () const {
return ChatRoom::getCore();
}

View file

@ -55,6 +55,8 @@ public:
unsigned int lastNotifyId
);
~ClientGroupChatRoom ();
std::shared_ptr<Core> getCore () const;
void allowCpim (bool value) override;