comctl32/imagelist: Fix a couple of imagelist leaks (Valgrind).
This commit is contained in:
parent
bf07eb926e
commit
6d1a3c6e6e
|
@ -3384,7 +3384,12 @@ static HRESULT WINAPI ImageListImpl_Merge(IImageList *iface, int i1,
|
||||||
|
|
||||||
/* Get the interface for the new image list */
|
/* Get the interface for the new image list */
|
||||||
if (hNew)
|
if (hNew)
|
||||||
|
{
|
||||||
|
IImageList *imerge = (IImageList*)hNew;
|
||||||
|
|
||||||
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
||||||
|
IImageList_Release(imerge);
|
||||||
|
}
|
||||||
|
|
||||||
IImageList_Release(iml2);
|
IImageList_Release(iml2);
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -3534,7 +3539,12 @@ static HRESULT WINAPI ImageListImpl_GetDragImage(IImageList *iface, POINT *ppt,
|
||||||
|
|
||||||
/* Get the interface for the new image list */
|
/* Get the interface for the new image list */
|
||||||
if (hNew)
|
if (hNew)
|
||||||
|
{
|
||||||
|
IImageList *idrag = (IImageList*)hNew;
|
||||||
|
|
||||||
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
||||||
|
IImageList_Release(idrag);
|
||||||
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue