mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
[SHELL32]
Fix a memory leak CID 1322131 svn path=/trunk/; revision=69673
This commit is contained in:
parent
d3a401609e
commit
7479bc63fe
1 changed files with 4 additions and 0 deletions
|
@ -1321,6 +1321,7 @@ HRESULT CMenuSFToolbar::FillToolbar(BOOL clearFirst)
|
|||
// If no items were added, show the "empty" placeholder
|
||||
if (DPA_GetPtrCount(dpaSort) == 0)
|
||||
{
|
||||
DPA_Destroy(dpaSort);
|
||||
return AddPlaceholder();
|
||||
}
|
||||
|
||||
|
@ -1341,7 +1342,10 @@ HRESULT CMenuSFToolbar::FillToolbar(BOOL clearFirst)
|
|||
|
||||
hr = m_shellFolder->GetDisplayNameOf(item, SIGDN_NORMALDISPLAY, &sr);
|
||||
if (FAILED_UNEXPECTEDLY(hr))
|
||||
{
|
||||
DPA_Destroy(dpaSort);
|
||||
return hr;
|
||||
}
|
||||
|
||||
StrRetToStr(&sr, NULL, &MenuString);
|
||||
|
||||
|
|
Loading…
Reference in a new issue