Commit 734fe2f7 authored by Ghislain MARY's avatar Ghislain MARY

Fix memory leak in friend list.

parent 5cf1abd5
......@@ -226,6 +226,7 @@ static LinphoneFriendList * linphone_friend_list_new(void) {
static void linphone_friend_list_destroy(LinphoneFriendList *list) {
if (list->display_name != NULL) ms_free(list->display_name);
if (list->rls_uri != NULL) ms_free(list->rls_uri);
if (list->content_digest != NULL) ms_free(list->content_digest);
if (list->event != NULL) linphone_event_unref(list->event);
list->friends = ms_list_free_with_data(list->friends, (void (*)(void *))linphone_friend_unref);
}
......
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