Commit ed5a2992 authored by Owen Rudge's avatar Owen Rudge Committed by Alexandre Julliard

shell32: Don't increase refcount twice in SHGetImageList.

parent 19316ff8
...@@ -2203,9 +2203,7 @@ HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv) ...@@ -2203,9 +2203,7 @@ HRESULT WINAPI SHGetImageList(int iImageList, REFIID riid, void **ppv)
if (hNew) if (hNew)
{ {
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv); ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
ImageList_Destroy(hNew);
if (!SUCCEEDED(ret))
ImageList_Destroy(hNew);
} }
return ret; return ret;
......
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