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 */
|
/* ok, success... now we just need to store what we found */
|
||||||
if( pcf )
|
if( pcf )
|
||||||
*pcf = RegisterClipboardFormatW( szOleTypeName );
|
*pcf = RegisterClipboardFormatW( szOleTypeName );
|
||||||
CoTaskMemFree( szOleTypeName );
|
|
||||||
|
|
||||||
if( lplpszUserType )
|
if( lplpszUserType )
|
||||||
*lplpszUserType = szCLSIDName;
|
*lplpszUserType = szCLSIDName;
|
||||||
CoTaskMemFree( szProgIDName );
|
|
||||||
|
|
||||||
end:
|
end:
|
||||||
|
CoTaskMemFree( szCLSIDName );
|
||||||
|
CoTaskMemFree( szOleTypeName );
|
||||||
|
CoTaskMemFree( szProgIDName );
|
||||||
IStream_Release( stm );
|
IStream_Release( stm );
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
|
|
Loading…
Reference in New Issue