diff --git a/src/conference/remote-conference.cpp b/src/conference/remote-conference.cpp index 0136a29cd..49ab55fac 100644 --- a/src/conference/remote-conference.cpp +++ b/src/conference/remote-conference.cpp @@ -30,6 +30,10 @@ RemoteConference::RemoteConference (LinphoneCore *core, const Address &myAddress eventHandler = new RemoteConferenceEventHandler(core, this); } +RemoteConference::~RemoteConference () { + delete eventHandler; +} + // ----------------------------------------------------------------------------- shared_ptr RemoteConference::addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) { diff --git a/src/conference/remote-conference.h b/src/conference/remote-conference.h index ddafca6f1..3a33bb98f 100644 --- a/src/conference/remote-conference.h +++ b/src/conference/remote-conference.h @@ -29,7 +29,7 @@ LINPHONE_BEGIN_NAMESPACE class RemoteConference : public Conference, public ConferenceListener { public: RemoteConference (LinphoneCore *core, const Address &myAddress, CallListener *listener = nullptr); - virtual ~RemoteConference() = default; + virtual ~RemoteConference(); protected: std::shared_ptr focus = nullptr; diff --git a/src/conference/session/media-session.cpp b/src/conference/session/media-session.cpp index 2d837f700..0d7ccaab4 100644 --- a/src/conference/session/media-session.cpp +++ b/src/conference/session/media-session.cpp @@ -72,11 +72,11 @@ MediaSessionPrivate::MediaSessionPrivate (const Conference &conference, const Ca params = new MediaSessionParams(*(reinterpret_cast(csp))); currentParams = new MediaSessionParams(); - audioStats = linphone_call_stats_ref(_linphone_call_stats_new()); + audioStats = _linphone_call_stats_new(); initStats(audioStats, LinphoneStreamTypeAudio); - videoStats = linphone_call_stats_ref(_linphone_call_stats_new()); + videoStats = _linphone_call_stats_new(); initStats(videoStats, LinphoneStreamTypeVideo); - textStats = linphone_call_stats_ref(_linphone_call_stats_new()); + textStats = _linphone_call_stats_new(); initStats(textStats, LinphoneStreamTypeText); int minPort, maxPort;