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
8b1d320f
Commit
8b1d320f
authored
Nov 09, 2016
by
Ghislain MARY
Browse files
Fix crash in VCard testers on Windows.
parent
e25f326f
Changes
2
Hide whitespace changes
Inline
Side-by-side
coreapi/friend.c
View file @
8b1d320f
...
...
@@ -1221,7 +1221,7 @@ void linphone_core_friends_storage_init(LinphoneCore *lc) {
linphone_create_table
(
db
);
if
(
linphone_update_table
(
db
))
{
// After updating schema, database need to be closed/reopenned
sqlite3_close
(
lc
->
friends_
db
);
sqlite3_close
(
db
);
_linphone_sqlite3_open
(
lc
->
friends_db_file
,
&
db
);
}
...
...
tester/vcard_tester.c
View file @
8b1d320f
...
...
@@ -243,9 +243,9 @@ static void friends_migration(void) {
BC_ASSERT_EQUAL
(
lp_config_get_int
(
lpc
,
"misc"
,
"friends_migration_done"
,
0
),
1
,
int
,
"%i"
);
friends_from_db
=
bctbx_list_free_with_data
(
friends_from_db
,
(
void
(
*
)(
void
*
))
linphone_friend_unref
);
linphone_core_manager_destroy
(
manager
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
linphone_core_manager_destroy
(
manager
);
}
typedef
struct
_LinphoneFriendListStats
{
...
...
@@ -368,11 +368,11 @@ static void friends_sqlite_storage(void) {
end:
ms_free
(
stats
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
linphone_address_unref
(
addr
);
linphone_core_destroy
(
lc
);
linphone_core_v_table_destroy
(
v_table
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
}
#endif
...
...
@@ -472,10 +472,10 @@ static void carddav_sync_2(void) {
BC_ASSERT_EQUAL
(
stats
->
sync_done_count
,
1
,
int
,
"%i"
);
ms_free
(
stats
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
linphone_carddav_context_destroy
(
c
);
linphone_core_manager_destroy
(
manager
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
}
static
void
carddav_sync_3
(
void
)
{
...
...
@@ -512,11 +512,10 @@ static void carddav_sync_3(void) {
BC_ASSERT_EQUAL
(
stats
->
sync_done_count
,
1
,
int
,
"%i"
);
ms_free
(
stats
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
linphone_carddav_context_destroy
(
c
);
c
=
NULL
;
linphone_core_manager_destroy
(
manager
);
unlink
(
friends_db
);
bc_free
(
friends_db
);
}
static
void
carddav_sync_4
(
void
)
{
...
...
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