Commit c73614b8 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix some memory leaks.

parent 3b08856d
......@@ -30,6 +30,10 @@ RemoteConference::RemoteConference (LinphoneCore *core, const Address &myAddress
eventHandler = new RemoteConferenceEventHandler(core, this);
}
RemoteConference::~RemoteConference () {
delete eventHandler;
}
// -----------------------------------------------------------------------------
shared_ptr<Participant> RemoteConference::addParticipant (const Address &addr, const CallSessionParams *params, bool hasMedia) {
......
......@@ -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<Participant> focus = nullptr;
......
......@@ -72,11 +72,11 @@ MediaSessionPrivate::MediaSessionPrivate (const Conference &conference, const Ca
params = new MediaSessionParams(*(reinterpret_cast<const MediaSessionParams *>(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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment