Commit 826871ba authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

shell32: Release the returned imagelist.

parent edb76009
......@@ -29,6 +29,7 @@
#include "wine/debug.h"
#include "undocshell.h"
#include "commoncontrols.h"
#include "pidl.h"
#include "shell32_main.h"
#include "shellapi.h"
......@@ -282,7 +283,10 @@ static void InitializeTreeView( browse_info *info )
static int GetIcon(LPCITEMIDLIST lpi, UINT uFlags)
{
SHFILEINFOW sfi;
SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);
IImageList *list;
list = (IImageList *)SHGetFileInfoW((LPCWSTR)lpi, 0 ,&sfi, sizeof(SHFILEINFOW), uFlags);
if (list) IImageList_Release(list);
return sfi.iIcon;
}
......
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