Commit b866c7f5 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

jscript: Make parser a temporary compiler object.

parent 97b44da7
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment