Add registration of CoreListener in the remote conference event handler.

This commit is contained in:
Ghislain MARY 2017-12-06 12:02:44 +01:00
parent 16a6c279ee
commit 047eba2f10
2 changed files with 5 additions and 1 deletions

View file

@ -22,7 +22,7 @@
#include "conference/remote-conference.h"
#include "content/content-manager.h"
#include "content/content.h"
#include "core/core.h"
#include "core/core-p.h"
#include "logger/logger.h"
#include "remote-conference-event-handler-p.h"
#include "xml/conference-info.h"
@ -214,9 +214,12 @@ Object(*new RemoteConferenceEventHandlerPrivate) {
L_D();
xercesc::XMLPlatformUtils::Initialize();
d->conf = remoteConference;
d->conf->getCore()->getPrivate()->registerListener(d);
}
RemoteConferenceEventHandler::~RemoteConferenceEventHandler () {
L_D();
d->conf->getCore()->getPrivate()->unregisterListener(d);
xercesc::XMLPlatformUtils::Terminate();
}

View file

@ -50,6 +50,7 @@ class LINPHONE_PUBLIC Core : public Object {
friend class MainDb;
friend class MainDbChatMessageKey;
friend class MainDbEventKey;
friend class RemoteConferenceEventHandler;
friend class ServerGroupChatRoom;
friend class ServerGroupChatRoomPrivate;