Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c73614b8
Commit
c73614b8
authored
Sep 22, 2017
by
Ghislain MARY
Browse files
Fix some memory leaks.
parent
3b08856d
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/conference/remote-conference.cpp
View file @
c73614b8
...
...
@@ -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
)
{
...
...
src/conference/remote-conference.h
View file @
c73614b8
...
...
@@ -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
;
...
...
src/conference/session/media-session.cpp
View file @
c73614b8
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment