Commit 6d6c3e5d authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

oleaut32: Don't leak BSTRs allocated in string_list and name_list.

parent 4133fb43
...@@ -4594,11 +4594,13 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface) ...@@ -4594,11 +4594,13 @@ static ULONG WINAPI ITypeLib2_fnRelease( ITypeLib2 *iface)
LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->string_list, TLBString, entry) { LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->string_list, TLBString, entry) {
list_remove(&tlbstr->entry); list_remove(&tlbstr->entry);
SysFreeString(tlbstr->str);
heap_free(tlbstr); heap_free(tlbstr);
} }
LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->name_list, TLBString, entry) { LIST_FOR_EACH_ENTRY_SAFE(tlbstr, tlbstr_next, &This->name_list, TLBString, entry) {
list_remove(&tlbstr->entry); list_remove(&tlbstr->entry);
SysFreeString(tlbstr->str);
heap_free(tlbstr); heap_free(tlbstr);
} }
......
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