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
12adc677
Commit
12adc677
authored
Oct 31, 2012
by
Jacek Caban
Committed by
Alexandre Julliard
Oct 31, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jscript: Fixed some leaks (coverity).
parent
9c63a30c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
dispex.c
dlls/jscript/dispex.c
+3
-1
function.c
dlls/jscript/function.c
+3
-1
number.c
dlls/jscript/number.c
+3
-1
vbarray.c
dlls/jscript/vbarray.c
+2
-0
No files found.
dlls/jscript/dispex.c
View file @
12adc677
...
...
@@ -901,8 +901,10 @@ HRESULT create_dispex(script_ctx_t *ctx, const builtin_info_t *builtin_info, jsd
return
E_OUTOFMEMORY
;
hres
=
init_dispex
(
ret
,
ctx
,
builtin_info
?
builtin_info
:
&
dispex_info
,
prototype
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
heap_free
(
ret
);
return
hres
;
}
*
dispex
=
ret
;
return
S_OK
;
...
...
dlls/jscript/function.c
View file @
12adc677
...
...
@@ -578,8 +578,10 @@ static HRESULT create_function(script_ctx_t *ctx, const builtin_info_t *builtin_
hres
=
init_dispex_from_constr
(
&
function
->
dispex
,
ctx
,
builtin_info
,
ctx
->
function_constr
);
else
hres
=
init_dispex_from_constr
(
&
function
->
dispex
,
ctx
,
&
FunctionInst_info
,
ctx
->
function_constr
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
heap_free
(
function
);
return
hres
;
}
function
->
flags
=
flags
;
function
->
length
=
flags
&
PROPF_ARGMASK
;
...
...
dlls/jscript/number.c
View file @
12adc677
...
...
@@ -609,8 +609,10 @@ static HRESULT alloc_number(script_ctx_t *ctx, jsdisp_t *object_prototype, Numbe
hres
=
init_dispex
(
&
number
->
dispex
,
ctx
,
&
Number_info
,
object_prototype
);
else
hres
=
init_dispex_from_constr
(
&
number
->
dispex
,
ctx
,
&
NumberInst_info
,
ctx
->
number_constr
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
{
heap_free
(
number
);
return
hres
;
}
*
ret
=
number
;
return
S_OK
;
...
...
dlls/jscript/vbarray.c
View file @
12adc677
...
...
@@ -184,6 +184,8 @@ static HRESULT VBArray_toArray(script_ctx_t *ctx, vdisp_t *vthis, WORD flags, un
if
(
r
)
*
r
=
jsval_obj
(
array
);
else
jsdisp_release
(
array
);
return
S_OK
;
}
...
...
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