mirror of
https://github.com/reactos/reactos.git
synced 2026-05-29 21:19:51 +08:00
[SHELL32] Fix PIDL leak in CMenuSFToolbar::FillToolbar. CORE-13194
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user