mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[SHELL32] Fix PIDL leak in CMenuSFToolbar::FillToolbar. CORE-13194
This commit is contained in:
parent
87d3fdf99e
commit
b8741e2bb3
1 changed files with 5 additions and 1 deletions
|
@ -1321,7 +1321,11 @@ HRESULT CMenuSFToolbar::FillToolbar(BOOL clearFirst)
|
|||
{
|
||||
if (m_menuBand->_CallCBWithItemPidl(item, 0x10000000, 0, 0) == S_FALSE)
|
||||
{
|
||||
DPA_AppendPtr(dpaSort, ILClone(item));
|
||||
DPA_AppendPtr(dpaSort, item);
|
||||
}
|
||||
else
|
||||
{
|
||||
CoTaskMemFree(item);
|
||||
}
|
||||
|
||||
hr = eidl->Next(1, &item, NULL);
|
||||
|
|
Loading…
Reference in a new issue