Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
c444a490
Commit
c444a490
authored
Sep 01, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Sep 01, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Code clean up.
parent
ee60e5fd
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
array.c
dlls/jscript/array.c
+1
-1
dispex.c
dlls/jscript/dispex.c
+4
-4
engine.c
dlls/jscript/engine.c
+2
-2
error.c
dlls/jscript/error.c
+3
-3
jscript.c
dlls/jscript/jscript.c
+2
-2
No files found.
dlls/jscript/array.c
View file @
c444a490
...
...
@@ -924,7 +924,7 @@ HRESULT create_array_constr(script_ctx_t *ctx, DispatchEx *object_prototype, Dis
hres
=
create_builtin_function
(
ctx
,
ArrayConstr_value
,
NULL
,
PROPF_CONSTR
,
&
array
->
dispex
,
ret
);
IDispatchEx_Release
(
_IDispatchEx_
(
&
array
->
dispex
)
);
jsdisp_release
(
&
array
->
dispex
);
return
hres
;
}
...
...
dlls/jscript/dispex.c
View file @
c444a490
...
...
@@ -788,7 +788,7 @@ HRESULT init_dispex_from_constr(DispatchEx *dispex, script_ctx_t *ctx, const bui
hres
=
init_dispex
(
dispex
,
ctx
,
builtin_info
,
prot
);
if
(
prot
)
IDispatchEx_Release
(
_IDispatchEx_
(
prot
)
);
jsdisp_release
(
prot
);
return
hres
;
}
...
...
@@ -871,7 +871,7 @@ HRESULT disp_call(IDispatch *disp, DISPID id, LCID lcid, WORD flags, DISPPARAMS
jsdisp
=
iface_to_jsdisp
((
IUnknown
*
)
disp
);
if
(
jsdisp
)
{
hres
=
jsdisp_call
(
jsdisp
,
id
,
lcid
,
flags
,
dp
,
retv
,
ei
,
caller
);
IDispatchEx_Release
(
_IDispatchEx_
(
jsdisp
)
);
jsdisp_release
(
jsdisp
);
return
hres
;
}
...
...
@@ -940,7 +940,7 @@ HRESULT disp_propput(IDispatch *disp, DISPID id, LCID lcid, VARIANT *val, jsexce
else
hres
=
DISP_E_MEMBERNOTFOUND
;
IDispatchEx_Release
(
_IDispatchEx_
(
jsdisp
)
);
jsdisp_release
(
jsdisp
);
return
hres
;
}
...
...
@@ -1010,7 +1010,7 @@ HRESULT disp_propget(IDispatch *disp, DISPID id, LCID lcid, VARIANT *val, jsexce
jsdisp
=
iface_to_jsdisp
((
IUnknown
*
)
disp
);
if
(
jsdisp
)
{
hres
=
jsdisp_propget
(
jsdisp
,
id
,
lcid
,
val
,
ei
,
caller
);
IDispatchEx_Release
(
_IDispatchEx_
(
jsdisp
)
);
jsdisp_release
(
jsdisp
);
return
hres
;
}
...
...
dlls/jscript/engine.c
View file @
c444a490
...
...
@@ -174,7 +174,7 @@ void scope_release(scope_chain_t *scope)
if
(
scope
->
next
)
scope_release
(
scope
->
next
);
IDispatchEx_Release
(
_IDispatchEx_
(
scope
->
obj
)
);
jsdisp_release
(
scope
->
obj
);
heap_free
(
scope
);
}
...
...
@@ -211,7 +211,7 @@ void exec_release(exec_ctx_t *ctx)
if
(
ctx
->
scope_chain
)
scope_release
(
ctx
->
scope_chain
);
if
(
ctx
->
var_disp
)
IDispatchEx_Release
(
_IDispatchEx_
(
ctx
->
var_disp
)
);
jsdisp_release
(
ctx
->
var_disp
);
if
(
ctx
->
this_obj
)
IDispatch_Release
(
ctx
->
this_obj
);
heap_free
(
ctx
);
...
...
dlls/jscript/error.c
View file @
c444a490
...
...
@@ -268,7 +268,7 @@ static HRESULT error_constr(DispatchEx *dispex, WORD flags, DISPPARAMS *dp,
V_DISPATCH
(
retv
)
=
(
IDispatch
*
)
_IDispatchEx_
(
err
);
}
else
IDispatchEx_Release
(
_IDispatchEx_
(
err
)
);
jsdisp_release
(
err
);
return
S_OK
;
...
...
@@ -367,7 +367,7 @@ HRESULT init_error_constr(script_ctx_t *ctx, DispatchEx *object_prototype)
V_VT
(
&
v
)
=
VT_BSTR
;
V_BSTR
(
&
v
)
=
SysAllocString
(
names
[
i
]);
if
(
!
V_BSTR
(
&
v
))
{
IDispatchEx_Release
(
_IDispatchEx_
(
&
err
->
dispex
)
);
jsdisp_release
(
&
err
->
dispex
);
return
E_OUTOFMEMORY
;
}
...
...
@@ -377,7 +377,7 @@ HRESULT init_error_constr(script_ctx_t *ctx, DispatchEx *object_prototype)
hres
=
create_builtin_function
(
ctx
,
constr_val
[
i
],
NULL
,
PROPF_CONSTR
,
&
err
->
dispex
,
constr_addr
[
i
]);
IDispatchEx_Release
(
_IDispatchEx_
(
&
err
->
dispex
)
);
jsdisp_release
(
&
err
->
dispex
);
VariantClear
(
&
v
);
if
(
FAILED
(
hres
))
return
hres
;
...
...
dlls/jscript/jscript.c
View file @
c444a490
...
...
@@ -361,12 +361,12 @@ static HRESULT WINAPI JScript_Close(IActiveScript *iface)
change_state
(
This
,
SCRIPTSTATE_CLOSED
);
if
(
This
->
ctx
->
script_disp
)
{
IDispatchEx_Release
(
_IDispatchEx_
(
This
->
ctx
->
script_disp
)
);
jsdisp_release
(
This
->
ctx
->
script_disp
);
This
->
ctx
->
script_disp
=
NULL
;
}
if
(
This
->
ctx
->
global
)
{
IDispatchEx_Release
(
_IDispatchEx_
(
This
->
ctx
->
global
)
);
jsdisp_release
(
This
->
ctx
->
global
);
This
->
ctx
->
global
=
NULL
;
}
}
...
...
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