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 */
|
||||
if (hNew)
|
||||
{
|
||||
IImageList *imerge = (IImageList*)hNew;
|
||||
|
||||
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
||||
IImageList_Release(imerge);
|
||||
}
|
||||
|
||||
IImageList_Release(iml2);
|
||||
return ret;
|
||||
|
@ -3534,7 +3539,12 @@ static HRESULT WINAPI ImageListImpl_GetDragImage(IImageList *iface, POINT *ppt,
|
|||
|
||||
/* Get the interface for the new image list */
|
||||
if (hNew)
|
||||
{
|
||||
IImageList *idrag = (IImageList*)hNew;
|
||||
|
||||
ret = HIMAGELIST_QueryInterface(hNew, riid, ppv);
|
||||
IImageList_Release(idrag);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue