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
5fb392bc
Commit
5fb392bc
authored
May 09, 2017
by
Ronan
Browse files
feat(friend): `set_vcard` should take a ref!
parent
b1a00f77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
coreapi/friend.c
coreapi/friend.c
+7
-5
No files found.
coreapi/friend.c
View file @
5fb392bc
...
...
@@ -1123,6 +1123,8 @@ LinphoneVcard* linphone_friend_get_vcard(LinphoneFriend *fr) {
void
linphone_friend_set_vcard
(
LinphoneFriend
*
fr
,
LinphoneVcard
*
vcard
)
{
if
(
!
fr
||
!
linphone_core_vcard_supported
())
return
;
if
(
vcard
)
linphone_vcard_ref
(
vcard
);
if
(
fr
->
vcard
)
linphone_vcard_unref
(
fr
->
vcard
);
fr
->
vcard
=
vcard
;
linphone_friend_save
(
fr
,
fr
->
lc
);
...
...
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