mshtml: create_channelbsc: Handle OOM case correctly.

This commit is contained in:
Joris Huizer 2010-03-04 12:39:18 +01:00 committed by Alexandre Julliard
parent a607f53779
commit b6f2919b90

View file

@ -1136,7 +1136,8 @@ HRESULT create_channelbsc(IMoniker *mon, WCHAR *headers, BYTE *post_data, DWORD
if(post_data) {
ret->bsc.post_data = GlobalAlloc(0, post_data_size);
if(!ret->bsc.headers) {
if(!ret->bsc.post_data) {
heap_free(ret->bsc.headers);
IBindStatusCallback_Release(STATUSCLB(&ret->bsc));
return E_OUTOFMEMORY;
}