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
305234e5
Commit
305234e5
authored
Jan 19, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 23, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msscript.ocx/tests: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d73a6bae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
msscript.c
dlls/msscript.ocx/tests/msscript.c
+12
-0
No files found.
dlls/msscript.ocx/tests/msscript.c
View file @
305234e5
...
...
@@ -283,8 +283,11 @@ static HRESULT WINAPI ActiveScript_SetScriptSite(IActiveScript *iface, IActiveSc
ok
(
hres
==
S_OK
,
"Could not get IActiveScriptSiteWindow interface: %08x
\n
"
,
hres
);
IActiveScriptSiteWindow_Release
(
window
);
if
(
site
)
IActiveScriptSite_Release
(
site
);
site
=
pass
;
IActiveScriptSite_AddRef
(
site
);
return
S_OK
;
}
...
...
@@ -430,6 +433,7 @@ static HRESULT WINAPI ClassFactory_CreateInstance(IClassFactory *iface, IUnknown
ok
(
!
outer
,
"outer = %p
\n
"
,
outer
);
ok
(
IsEqualGUID
(
&
IID_IActiveScript
,
riid
),
"unexpected riid %s
\n
"
,
wine_dbgstr_guid
(
riid
));
*
ppv
=
&
ActiveScript
;
site
=
NULL
;
return
S_OK
;
}
...
...
@@ -780,6 +784,8 @@ static void test_Language(void)
ok
(
!
lstrcmpW
(
testscriptW
,
str
),
"%s
\n
"
,
wine_dbgstr_w
(
str
));
SysFreeString
(
str
);
IActiveScriptSite_Release
(
site
);
init_registry
(
FALSE
);
SET_EXPECT
(
Close
);
...
...
@@ -1077,6 +1083,9 @@ static void test_Reset(void)
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
CHECK_CALLED
(
SetScriptState_INITIALIZED
);
CHECK_CALLED
(
SetScriptSite
);
IActiveScriptSite_Release
(
site
);
init_registry
(
FALSE
);
SET_EXPECT
(
Close
);
...
...
@@ -1213,6 +1222,9 @@ static void test_AddObject(void)
hr
=
IScriptControl_AddObject
(
sc
,
objname
,
&
testdisp
,
VARIANT_TRUE
);
ok
(
hr
==
E_INVALIDARG
,
"got 0x%08x
\n
"
,
hr
);
CHECK_CALLED
(
SetScriptSite
);
IActiveScriptSite_Release
(
site
);
init_registry
(
FALSE
);
SET_EXPECT
(
Close
);
...
...
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