Commit 780228b6 authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

ole32: Fix some leaks (coverity).

parent f5628373
...@@ -8769,13 +8769,14 @@ HRESULT WINAPI ReadFmtUserTypeStg (LPSTORAGE pstg, CLIPFORMAT* pcf, LPOLESTR* lp ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment