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
be0d31c9
Commit
be0d31c9
authored
Jan 15, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
taskschd/tests: Fix some memory leaks (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7ee553f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
scheduler.c
dlls/taskschd/tests/scheduler.c
+7
-0
No files found.
dlls/taskschd/tests/scheduler.c
View file @
be0d31c9
...
@@ -544,6 +544,7 @@ static void test_FolderCollection(void)
...
@@ -544,6 +544,7 @@ static void test_FolderCollection(void)
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
else
else
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
ITaskFolder_Release
(
subfolder
);
ITaskFolder_Release
(
subfolder
);
}
}
...
@@ -571,6 +572,7 @@ static void test_FolderCollection(void)
...
@@ -571,6 +572,7 @@ static void test_FolderCollection(void)
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IUnknown
,
(
void
**
)
&
enumvar
);
hr
=
IUnknown_QueryInterface
(
unknown
,
&
IID_IUnknown
,
(
void
**
)
&
enumvar
);
ok
(
hr
==
S_OK
,
"QueryInterface error %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"QueryInterface error %#x
\n
"
,
hr
);
IUnknown_Release
(
unknown
);
hr
=
IEnumVARIANT_Skip
(
enumvar
,
0
);
hr
=
IEnumVARIANT_Skip
(
enumvar
,
0
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
...
@@ -605,6 +607,7 @@ static void test_FolderCollection(void)
...
@@ -605,6 +607,7 @@ static void test_FolderCollection(void)
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
else
else
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
IDispatch_Release
(
V_DISPATCH
(
&
var
[
0
]));
IDispatch_Release
(
V_DISPATCH
(
&
var
[
0
]));
memset
(
var
,
0
,
sizeof
(
var
));
memset
(
var
,
0
,
sizeof
(
var
));
...
@@ -650,6 +653,7 @@ static void test_FolderCollection(void)
...
@@ -650,6 +653,7 @@ static void test_FolderCollection(void)
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder1
),
"expected Folder1, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
else
else
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
Folder2
),
"expected Folder2, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
ITaskFolder_Release
(
subfolder
);
ITaskFolder_Release
(
subfolder
);
}
}
...
@@ -1049,7 +1053,10 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st
...
@@ -1049,7 +1053,10 @@ static void test_settings_v1(ITaskDefinition *taskdef, struct settings *test, st
if
(
!
test
->
execution_time_limit
[
0
])
if
(
!
test
->
execution_time_limit
[
0
])
ok
(
bstr
==
NULL
,
"expected NULL, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
ok
(
bstr
==
NULL
,
"expected NULL, got %s
\n
"
,
wine_dbgstr_w
(
bstr
));
else
else
{
ok
(
!
lstrcmpW
(
bstr
,
test
->
execution_time_limit
),
"expected %s, got %s
\n
"
,
wine_dbgstr_w
(
test
->
execution_time_limit
),
wine_dbgstr_w
(
bstr
));
ok
(
!
lstrcmpW
(
bstr
,
test
->
execution_time_limit
),
"expected %s, got %s
\n
"
,
wine_dbgstr_w
(
test
->
execution_time_limit
),
wine_dbgstr_w
(
bstr
));
SysFreeString
(
bstr
);
}
hr
=
ITaskSettings_get_Enabled
(
set
,
&
vbool
);
hr
=
ITaskSettings_get_Enabled
(
set
,
&
vbool
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"expected S_OK, got %#x
\n
"
,
hr
);
...
...
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