Commit dc894b7f authored by Benjamin REIS's avatar Benjamin REIS

fix memory leak

parent 888a3c83
......@@ -1367,6 +1367,7 @@ static void bodyless_config_read(LinphoneCore *lc) {
linphone_address_unref(addr);
linphone_friend_list_set_subscription_bodyless(friendList, TRUE);
linphone_core_add_friend_list(lc, friendList);
linphone_friend_list_unref(friendList);
if (!n)
break;
......
......@@ -1841,9 +1841,6 @@ static void multiple_bodyless_list_subscription_with_rc(void) {
BC_ASSERT_PTR_NOT_NULL(linphone_friend_list_find_friend_by_uri(broList, "sip:bro@sip.example.org"));
BC_ASSERT_PTR_NULL(linphone_friend_list_find_friend_by_uri(broList, "sip:bro2@sip.example.org"));
linphone_friend_list_unref(friendList);
linphone_friend_list_unref(buddyList);
linphone_friend_list_unref(broList);
linphone_core_manager_destroy(marie);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment