Alistair Leslie-Hughes wrote: > + hr = CreateStreamOnHGlobal(NULL, TRUE, &This->stream); > + if (FAILED(hr)) > + return hr You need to free This->stream somewhere. -- Rob Shearman