ole32: Fix some leaks (coverity).
This commit is contained in:
parent
f5628373e5
commit
780228b6ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue