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
a0e7c999
Commit
a0e7c999
authored
Feb 01, 2011
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 01, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Fix a IRecordInfo leak (Valgrind).
parent
1fe904bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
safearray.c
dlls/oleaut32/tests/safearray.c
+8
-2
No files found.
dlls/oleaut32/tests/safearray.c
View file @
a0e7c999
...
...
@@ -111,7 +111,12 @@ static ULONG CALLBACK IRecordInfoImpl_AddRef(IRecordInfo *iface)
static
ULONG
CALLBACK
IRecordInfoImpl_Release
(
IRecordInfo
*
iface
)
{
IRecordInfoImpl
*
This
=
impl_from_IRecordInfo
(
iface
);
return
InterlockedDecrement
(
&
This
->
ref
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
if
(
!
ref
)
HeapFree
(
GetProcessHeap
(),
0
,
This
);
return
ref
;
}
static
BOOL
fail_GetSize
;
/* Whether to fail the GetSize call */
...
...
@@ -1463,6 +1468,7 @@ static void test_SafeArrayCreateEx(void)
hres
=
SafeArrayDestroy
(
sa
);
ok
(
hres
==
S_OK
,
"got 0x%08x
\n
"
,
hres
);
ok
(
iRec
->
clearCalled
==
sab
[
0
].
cElements
,
"Destroy->Clear called %d times
\n
"
,
iRec
->
clearCalled
);
ok
(
iRec
->
ref
==
START_REF_COUNT
,
"got %d, expected %d
\n
"
,
iRec
->
ref
,
START_REF_COUNT
);
}
/* Test VT_RECORD array */
...
...
@@ -1662,7 +1668,7 @@ static void test_SafeArrayChangeTypeEx(void)
}
/* To/from BSTR only works with arrays of VT_UI1 */
for
(
vt
=
0
;
vt
<=
VT_CLSID
;
vt
++
)
for
(
vt
=
VT_EMPTY
;
vt
<=
VT_CLSID
;
vt
++
)
{
if
(
vt
==
VT_UI1
)
continue
;
...
...
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