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
fc4748ae
Commit
fc4748ae
authored
Apr 27, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Apr 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Properly allocate and free the WAVEFORMATEX returned by IsFormatSupported.
parent
2692a68c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile.in
dlls/winealsa.drv/Makefile.in
+1
-1
mmdevdrv.c
dlls/winealsa.drv/mmdevdrv.c
+3
-3
No files found.
dlls/winealsa.drv/Makefile.in
View file @
fc4748ae
MODULE
=
winealsa.drv
IMPORTS
=
dxguid uuid winmm user32 advapi32
IMPORTS
=
dxguid uuid winmm
ole32
user32 advapi32
EXTRALIBS
=
@ALSALIBS@
C_SRCS
=
\
...
...
dlls/winealsa.drv/mmdevdrv.c
View file @
fc4748ae
...
...
@@ -271,7 +271,7 @@ static ULONG WINAPI AudioClient_Release(IAudioClient *iface)
snd_pcm_close
(
This
->
pcm_handle
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
local_buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
hw_params
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
fmt
);
CoTaskMemFree
(
This
->
fmt
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
return
ref
;
...
...
@@ -321,7 +321,7 @@ static WAVEFORMATEX *clone_format(const WAVEFORMATEX *fmt)
else
size
=
sizeof
(
WAVEFORMATEX
);
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
ret
=
CoTaskMemAlloc
(
size
);
if
(
!
ret
)
return
NULL
;
...
...
@@ -850,7 +850,7 @@ exit:
HeapFree
(
GetProcessHeap
(),
0
,
formats
);
if
(
hr
==
S_OK
||
!
out
){
HeapFree
(
GetProcessHeap
(),
0
,
closest
);
CoTaskMemFree
(
closest
);
if
(
out
)
*
out
=
NULL
;
}
else
if
(
closest
){
...
...
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