mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-18 03:28:07 +00:00
Fix memory leak (parser not deleted)
This commit is contained in:
parent
45ff930190
commit
79086201c0
1 changed files with 3 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ extern "C" MSList* linphone_vcard_list_from_vcard4_file(const char *filename) {
|
|||
result = ms_list_append(result, vCard);
|
||||
}
|
||||
}
|
||||
delete parser;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -68,6 +69,7 @@ extern "C" MSList* linphone_vcard_list_from_vcard4_buffer(const char *buffer) {
|
|||
result = ms_list_append(result, vCard);
|
||||
}
|
||||
}
|
||||
delete parser;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
@ -81,6 +83,7 @@ extern "C" LinphoneVCard* linphone_vcard_new_from_vcard4_buffer(const char *buff
|
|||
vCard = linphone_vcard_new();
|
||||
vCard->belCard = belCard;
|
||||
}
|
||||
delete parser;
|
||||
}
|
||||
return vCard;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue