Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
aa18bbed
Commit
aa18bbed
authored
Nov 03, 2023
by
Gabriel Ivăncescu
Committed by
Alexandre Julliard
Nov 03, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Don't addref before calling jsdisp_propput_name.
It already increases refcount. Signed-off-by:
Gabriel Ivăncescu
<
gabrielopcode@gmail.com
>
parent
736eb107
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
engine.c
dlls/jscript/engine.c
+1
-1
jsregexp.c
dlls/jscript/jsregexp.c
+1
-1
No files found.
dlls/jscript/engine.c
View file @
aa18bbed
...
@@ -758,7 +758,7 @@ static HRESULT detach_scope(script_ctx_t *ctx, call_frame_t *frame, scope_chain_
...
@@ -758,7 +758,7 @@ static HRESULT detach_scope(script_ctx_t *ctx, call_frame_t *frame, scope_chain_
if
(
scope
==
frame
->
base_scope
&&
func
->
name
&&
func
->
local_ref
==
INVALID_LOCAL_REF
&&
if
(
scope
==
frame
->
base_scope
&&
func
->
name
&&
func
->
local_ref
==
INVALID_LOCAL_REF
&&
ctx
->
version
>=
SCRIPTLANGUAGEVERSION_ES5
)
ctx
->
version
>=
SCRIPTLANGUAGEVERSION_ES5
)
jsdisp_propput_name
(
jsobj
,
func
->
name
,
jsval_obj
(
jsdisp_addref
(
frame
->
function_instance
)
));
jsdisp_propput_name
(
jsobj
,
func
->
name
,
jsval_obj
(
frame
->
function_instance
));
index
=
scope
->
scope_index
;
index
=
scope
->
scope_index
;
for
(
i
=
0
;
i
<
frame
->
function
->
local_scopes
[
index
].
locals_cnt
;
i
++
)
for
(
i
=
0
;
i
<
frame
->
function
->
local_scopes
[
index
].
locals_cnt
;
i
++
)
...
...
dlls/jscript/jsregexp.c
View file @
aa18bbed
...
@@ -390,7 +390,7 @@ static HRESULT create_match_array(script_ctx_t *ctx, jsstr_t *input_str,
...
@@ -390,7 +390,7 @@ static HRESULT create_match_array(script_ctx_t *ctx, jsstr_t *input_str,
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
break
;
break
;
hres
=
jsdisp_propput_name
(
array
,
L"input"
,
jsval_string
(
jsstr_addref
(
input_str
)
));
hres
=
jsdisp_propput_name
(
array
,
L"input"
,
jsval_string
(
input_str
));
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment