[PATCH] check return code of
ICreateDevEnum_CreateClassEnumerator
Alexandre Julliard
julliard at winehq.org
Wed May 23 05:52:48 CDT 2007
Marcus Meissner <marcus at jet.franken.de> writes:
> diff --git a/dlls/quartz/filtermapper.c b/dlls/quartz/filtermapper.c
> index 6adce61..841b130 100644
> --- a/dlls/quartz/filtermapper.c
> +++ b/dlls/quartz/filtermapper.c
> @@ -966,6 +966,9 @@ static HRESULT WINAPI FilterMapper2_Enum
> if (SUCCEEDED(hr))
> hr = ICreateDevEnum_CreateClassEnumerator(pCreateDevEnum, &CLSID_ActiveMovieCategories, &pEnumCat, 0);
>
> + if (!SUCCEEDED(hr))
> + return hr;
You are potentially leaking an object here.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list