jscript: Check the correct heap return condition (Coverity).

This commit is contained in:
Marcus Meissner 2013-03-15 19:42:12 +01:00 committed by Alexandre Julliard
parent 99982f886f
commit 339ec9c4ed
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ HRESULT create_regexp(script_ctx_t *ctx, jsstr_t *src, DWORD flags, jsdisp_t **r
regexp->jsregexp = regexp_new(ctx, &ctx->tmp_heap, regexp->str->str,
jsstr_length(regexp->str), flags, FALSE);
if(FAILED(hres)) {
if(!regexp->jsregexp) {
WARN("regexp_new failed\n");
jsdisp_release(&regexp->dispex);
return E_FAIL;