Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
ea5cc190
Commit
ea5cc190
authored
Jan 08, 2018
by
Ghislain MARY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some memory leaks.
parent
e35b483f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
media-session.cpp
src/conference/session/media-session.cpp
+3
-3
tester.c
tester/tester.c
+13
-6
No files found.
src/conference/session/media-session.cpp
View file @
ea5cc190
...
...
@@ -2187,9 +2187,9 @@ void MediaSessionPrivate::handleIceEvents (OrtpEvent *ev) {
if
(
iceAgent
->
hasCompletedCheckList
())
{
/* At least one ICE session has succeeded, so perform a call update */
if
(
iceAgent
->
isControlling
()
&&
q
->
getCurrentParams
()
->
getPrivate
()
->
getUpdateCallWhenIceCompleted
())
{
MediaSessionParams
*
newParams
=
new
MediaSession
Params
(
*
getParams
());
newParams
->
getPrivate
()
->
setInternalCallUpdate
(
true
);
q
->
update
(
newParams
);
MediaSessionParams
new
Params
(
*
getParams
());
newParams
.
getPrivate
()
->
setInternalCallUpdate
(
true
);
q
->
update
(
&
newParams
);
}
startDtlsOnAllStreams
();
}
...
...
tester/tester.c
View file @
ea5cc190
...
...
@@ -775,10 +775,12 @@ bool_t check_ice(LinphoneCoreManager* caller, LinphoneCoreManager* callee, Linph
realtime_text_enabled
=
linphone_call_params_realtime_text_enabled
(
linphone_call_get_current_params
(
c1
));
if
(
audio_enabled
)
{
liblinphone_tester_clock_start
(
&
ts
);
do
{
LinphoneCallStats
*
stats1
=
NULL
;
LinphoneCallStats
*
stats2
=
NULL
;
do
{
if
((
c1
!=
NULL
)
&&
(
c2
!=
NULL
))
{
LinphoneCallStats
*
stats1
=
linphone_call_get_audio_stats
(
c1
);
LinphoneCallStats
*
stats2
=
linphone_call_get_audio_stats
(
c2
);
stats1
=
linphone_call_get_audio_stats
(
c1
);
stats2
=
linphone_call_get_audio_stats
(
c2
);
if
(
linphone_call_stats_get_ice_state
(
stats1
)
==
state
&&
linphone_call_stats_get_ice_state
(
stats2
)
==
state
){
audio_success
=
TRUE
;
...
...
@@ -786,13 +788,18 @@ bool_t check_ice(LinphoneCoreManager* caller, LinphoneCoreManager* callee, Linph
check_ice_from_rtp
(
c2
,
c1
,
LinphoneStreamTypeAudio
);
break
;
}
linphone_call_stats_unref
(
stats1
);
linphone_call_stats_unref
(
stats2
);
linphone_core_iterate
(
caller
->
lc
);
linphone_core_iterate
(
callee
->
lc
);
linphone_call_stats_unref
(
stats1
);
linphone_call_stats_unref
(
stats2
);
stats1
=
stats2
=
NULL
;
}
ms_usleep
(
20000
);
}
while
(
!
liblinphone_tester_clock_elapsed
(
&
ts
,
10000
));
}
while
(
!
liblinphone_tester_clock_elapsed
(
&
ts
,
10000
));
if
(
stats1
)
linphone_call_stats_unref
(
stats1
);
if
(
stats2
)
linphone_call_stats_unref
(
stats2
);
}
if
(
video_enabled
){
...
...
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