ole32: Fix some leaks (coverity).

This commit is contained in:
Frédéric Delanoy 2012-11-09 10:17:41 +01:00 committed by Alexandre Julliard
parent f5628373e5
commit 780228b6ca
1 changed files with 3 additions and 2 deletions

View File

@ -8769,13 +8769,14 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp
/* ok, success... now we just need to store what we found */
if( pcf )
*pcf = RegisterClipboardFormatW( szOleTypeName );
CoTaskMemFree( szOleTypeName );
if( lplpszUserType )
*lplpszUserType = szCLSIDName;
CoTaskMemFree( szProgIDName );
end:
CoTaskMemFree( szCLSIDName );
CoTaskMemFree( szOleTypeName );
CoTaskMemFree( szProgIDName );
IStream_Release( stm );
return r;