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
5308c71c
Commit
5308c71c
authored
Sep 18, 2022
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Sep 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32/tests: Free returned property set memory.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=36312
parent
e04a406a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
marshal.c
dlls/oledb32/tests/marshal.c
+18
-0
No files found.
dlls/oledb32/tests/marshal.c
View file @
5308c71c
...
...
@@ -219,6 +219,22 @@ static IDBProperties Test_DBProperties =
&
Test_DBProperties_Vtbl
};
static
void
free_dbpropset
(
ULONG
count
,
DBPROPSET
*
propset
)
{
ULONG
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
ULONG
p
;
for
(
p
=
0
;
p
<
propset
[
i
].
cProperties
;
p
++
)
VariantClear
(
&
propset
[
i
].
rgProperties
[
p
].
vValue
);
CoTaskMemFree
(
propset
[
i
].
rgProperties
);
}
CoTaskMemFree
(
propset
);
}
static
void
test_IDBProperties
(
void
)
{
HRESULT
hr
;
...
...
@@ -257,6 +273,8 @@ static void test_IDBProperties(void)
ok
(
propsets
->
cProperties
==
1
,
"Expected property count of 1 but got %ld
\n
"
,
propsets
->
cProperties
);
ok
(
IsEqualGUID
(
&
propsets
->
guidPropertySet
,
&
IID_IDBProperties
),
"Unexpected guid for property set
\n
"
);
free_dbpropset
(
propset_count
,
propsets
);
IDBProperties_Release
(
pProxy
);
end_host_object
(
tid
,
thread
);
...
...
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