Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
liblinphone
Commits
df6e2005
Commit
df6e2005
authored
Nov 19, 2013
by
Simon Morlat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix leaked streams in case of incoming call declined because media incompatible
parent
2f415bc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
coreapi/linphonecall.c
coreapi/linphonecall.c
+1
-0
coreapi/linphonecore.c
coreapi/linphonecore.c
+1
-0
No files found.
coreapi/linphonecall.c
View file @
df6e2005
...
...
@@ -762,6 +762,7 @@ void linphone_call_set_state(LinphoneCall *call, LinphoneCallState cstate, const
static
void
linphone_call_destroy
(
LinphoneCall
*
obj
)
{
ms_message
(
"Call [%p] freed."
,
obj
);
linphone_call_stop_media_streams
(
obj
);
#ifdef BUILD_UPNP
linphone_call_delete_upnp_session
(
obj
);
#endif //BUILD_UPNP
...
...
coreapi/linphonecore.c
View file @
df6e2005
...
...
@@ -2852,6 +2852,7 @@ void linphone_core_notify_incoming_call(LinphoneCore *lc, LinphoneCall *call){
if
(
md
){
if
(
sal_media_description_empty
(
md
)
||
linphone_core_incompatible_security
(
lc
,
md
)){
sal_call_decline
(
call
->
op
,
SalReasonMedia
,
NULL
);
linphone_call_stop_media_streams
(
call
);
linphone_core_del_call
(
lc
,
call
);
linphone_call_unref
(
call
);
return
;
...
...
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