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
23a0c7f6
Commit
23a0c7f6
authored
Oct 30, 2015
by
Andrew Eikum
Committed by
Alexandre Julliard
Nov 01, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xaudio2/tests: Fix memory leaks.
Spotted by Nikolay Sivov. Signed-off-by:
Andrew Eikum
<
aeikum@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4a4efc35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
xaudio2.c
dlls/xaudio2_7/tests/xaudio2.c
+7
-0
No files found.
dlls/xaudio2_7/tests/xaudio2.c
View file @
23a0c7f6
...
...
@@ -766,6 +766,13 @@ static void test_looping(IXAudio2 *xa)
ok
(
played
-
running_total
==
22050
+
44100
*
2
,
"Got wrong samples played: %u
\n
"
,
played
-
running_total
);
ok
(
nloopends
==
(
played
-
running_total
)
/
88200
+
1
,
"Got wrong OnLoopEnd calls: %u
\n
"
,
nloopends
);
running_total
=
played
;
if
(
xaudio27
)
IXAudio27SourceVoice_DestroyVoice
((
IXAudio27SourceVoice
*
)
src
);
else
IXAudio2SourceVoice_DestroyVoice
(
src
);
IXAudio2MasteringVoice_DestroyVoice
(
master
);
HeapFree
(
GetProcessHeap
(),
0
,
(
void
*
)
buf
.
pAudioData
);
}
static
UINT32
test_DeviceDetails
(
IXAudio27
*
xa
)
...
...
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