mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix some memory leaks.
This commit is contained in:
parent
3b08856dc0
commit
c73614b852
3 changed files with 8 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue