mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
fix(c-tools): fix a memory leak on getResolvedCListFromCppList
This commit is contained in:
parent
d8e81d63c8
commit
2f1be97c10
1 changed files with 1 additions and 1 deletions
|
|
@ -562,7 +562,7 @@ public:
|
|||
static inline bctbx_list_t *getResolvedCListFromCppList (const std::list<CppType> &cppList) {
|
||||
bctbx_list_t *result = nullptr;
|
||||
for (const auto &value : cppList)
|
||||
result = bctbx_list_append(result, belle_sip_object_ref(getCBackPtr(&value)));
|
||||
result = bctbx_list_append(result, getCBackPtr(&value));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue