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
9e38d94b
Commit
9e38d94b
authored
Dec 04, 2017
by
Erwan Croze
👋🏻
Browse files
Fix bad unref in callbacks.c call_received
parent
cd40d176
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
coreapi/callbacks.c
coreapi/callbacks.c
+2
-2
No files found.
coreapi/callbacks.c
View file @
9e38d94b
...
...
@@ -110,13 +110,13 @@ static void call_received(SalCallOp *h) {
linphone_address_unref
(
fromAddr
);
return
;
}
else
if
(
sal_address_has_param
(
h
->
get_remote_contact_address
(),
"text"
))
{
linphone_address_unref
(
toAddr
);
linphone_address_unref
(
fromAddr
);
shared_ptr
<
ChatRoom
>
chatRoom
=
L_GET_CPP_PTR_FROM_C_OBJECT
(
lc
)
->
findChatRoom
(
ChatRoomId
(
IdentityAddress
(
h
->
get_to
()),
IdentityAddress
(
h
->
get_to
()))
);
if
(
chatRoom
)
{
L_GET_PRIVATE
(
static_pointer_cast
<
ServerGroupChatRoom
>
(
chatRoom
))
->
confirmJoining
(
h
);
linphone_address_unref
(
toAddr
);
linphone_address_unref
(
fromAddr
);
return
;
}
}
else
{
...
...
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