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
a1cbc47b
Commit
a1cbc47b
authored
Jun 25, 2023
by
Davide Beatrici
Committed by
Alexandre Julliard
Jun 26, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Use standard allocator in AudioClient's Initialize.
parent
92a251a9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmdevdrv.c
dlls/wineoss.drv/mmdevdrv.c
+3
-3
No files found.
dlls/wineoss.drv/mmdevdrv.c
View file @
a1cbc47b
...
...
@@ -398,7 +398,7 @@ static ULONG WINAPI AudioClient_Release(IAudioClient3 *iface)
list_remove
(
&
This
->
entry
);
sessions_unlock
();
}
HeapFree
(
GetProcessHeap
(),
0
,
This
->
vols
);
free
(
This
->
vols
);
if
(
This
->
stream
)
stream_release
(
This
->
stream
,
This
->
timer_thread
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -587,7 +587,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
return
params
.
result
;
}
This
->
vols
=
HeapAlloc
(
GetProcessHeap
(),
0
,
channel_count
*
sizeof
(
float
));
This
->
vols
=
malloc
(
channel_count
*
sizeof
(
float
));
if
(
!
This
->
vols
){
params
.
result
=
E_OUTOFMEMORY
;
goto
exit
;
...
...
@@ -600,7 +600,7 @@ static HRESULT WINAPI AudioClient_Initialize(IAudioClient3 *iface,
exit:
if
(
FAILED
(
params
.
result
)){
stream_release
(
stream
,
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
vols
);
free
(
This
->
vols
);
This
->
vols
=
NULL
;
}
else
{
list_add_tail
(
&
This
->
session
->
clients
,
&
This
->
entry
);
...
...
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