jscript: Make parser a temporary compiler object.

This commit is contained in:
Jacek Caban 2012-04-25 11:26:12 +02:00 committed by Alexandre Julliard
parent 97b44da746
commit b866c7f5e9
2 changed files with 1 additions and 7 deletions

View File

@ -1732,9 +1732,6 @@ void release_bytecode(bytecode_t *code)
if(--code->ref)
return;
if(code->parser)
parser_release(code->parser);
for(i=0; i < code->bstr_cnt; i++)
SysFreeString(code->bstr_pool[i]);
@ -1878,9 +1875,8 @@ HRESULT compile_script(script_ctx_t *ctx, const WCHAR *code, const WCHAR *delimi
return hres;
}
compiler.code->parser = compiler.parser;
hres = compile_function(&compiler, compiler.parser->source, NULL, from_eval, &compiler.code->global_code);
parser_release(compiler.parser);
if(FAILED(hres)) {
release_bytecode(compiler.code);
return hres;

View File

@ -197,8 +197,6 @@ typedef struct _bytecode_t {
unsigned bstr_pool_size;
unsigned bstr_cnt;
parser_ctx_t *parser;
struct _bytecode_t *next;
} bytecode_t;