mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
mshtml: create_channelbsc: Handle OOM case correctly.
This commit is contained in:
parent
a607f53779
commit
b6f2919b90
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue