mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-19 12:08:11 +00:00
fix(content-manager): avoid memory leak in multipartToContentList
This commit is contained in:
parent
a8a5e1ef90
commit
89fb96837b
1 changed files with 2 additions and 2 deletions
|
|
@ -47,8 +47,8 @@ list<Content> ContentManager::multipartToContentList (const Content &content) {
|
|||
for (const belle_sip_list_t *parts = sal_body_handler_get_parts(sbh); parts; parts = parts->next) {
|
||||
SalBodyHandler *part = (SalBodyHandler *)parts->data;
|
||||
LinphoneContent *cContent = linphone_content_from_sal_body_handler(part);
|
||||
Content *cppContent = L_GET_CPP_PTR_FROM_C_OBJECT(cContent);
|
||||
contents.push_back(*cppContent);
|
||||
contents.push_back(*L_GET_CPP_PTR_FROM_C_OBJECT(cContent));
|
||||
linphone_content_unref(cContent);
|
||||
}
|
||||
|
||||
sal_body_handler_unref(sbh);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue