Author: ssawant
Date: Fri Jul 7 16:38:37 2017
New Revision: 75299
URL:
http://svn.reactos.org/svn/reactos?rev=75299&view=rev
Log:
[QCKLNCH]
-Fixed a memory leak issue.
-Apparently Tested in xpvm.
-Needs further testing.
Modified:
branches/GSoC_2017/shellext/reactos/dll/shellext/qcklnch/CISFBand.cpp
Modified: branches/GSoC_2017/shellext/reactos/dll/shellext/qcklnch/CISFBand.cpp
URL:
http://svn.reactos.org/svn/reactos/branches/GSoC_2017/shellext/reactos/dll/…
==============================================================================
--- branches/GSoC_2017/shellext/reactos/dll/shellext/qcklnch/CISFBand.cpp [iso-8859-1]
(original)
+++ branches/GSoC_2017/shellext/reactos/dll/shellext/qcklnch/CISFBand.cpp [iso-8859-1] Fri
Jul 7 16:38:37 2017
@@ -169,16 +169,11 @@
{
ShowWindow(SW_HIDE);
- CComPtr<IEnumIDList> pEndl;
- LPITEMIDLIST pidl;
- HRESULT hr = m_pISF->EnumObjects(0, SHCONTF_FOLDERS, &pEndl);
- if (FAILED_UNEXPECTEDLY(hr))
- {
- DestroyWindow();
- return hr;
- }
- while (pEndl->Next(1, &pidl, NULL) != S_FALSE)
- CoTaskMemFree(pidl);
+ TBBUTTON tb;
+ for (int i = 0; SendMessage(m_hWnd, TB_GETBUTTON, i, (LPARAM)&tb); i++)
+ {
+ CoTaskMemFree((LPITEMIDLIST)tb.dwData);
+ }
DestroyWindow();
m_hWnd = NULL;