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
fb1f4275
Commit
fb1f4275
authored
Jul 08, 2016
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 08, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Remove redundant NULL checks before CoTaskMemFree().
Signed-off-by:
Michael Stefaniuc
<
mstefani@redhat.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1e662d92
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
waveform.c
dlls/winmm/waveform.c
+2
-4
No files found.
dlls/winmm/waveform.c
View file @
fb1f4275
...
...
@@ -899,8 +899,7 @@ static MMRESULT WINMM_TryDeviceMapping(WINMM_Device *device, WAVEFORMATEX *fmt,
hr
=
IAudioClient_IsFormatSupported
(
device
->
client
,
AUDCLNT_SHAREMODE_SHARED
,
&
target
,
&
closer_fmt
);
if
(
closer_fmt
)
CoTaskMemFree
(
closer_fmt
);
CoTaskMemFree
(
closer_fmt
);
if
(
hr
!=
S_OK
)
return
WAVERR_BADFORMAT
;
...
...
@@ -1119,8 +1118,7 @@ static LRESULT WINMM_OpenDevice(WINMM_Device *device, WINMM_OpenInfo *info,
hr
=
IAudioClient_IsFormatSupported
(
device
->
client
,
AUDCLNT_SHAREMODE_SHARED
,
device
->
orig_fmt
,
&
closer_fmt
);
if
(
closer_fmt
)
CoTaskMemFree
(
closer_fmt
);
CoTaskMemFree
(
closer_fmt
);
if
((
hr
==
S_FALSE
||
hr
==
AUDCLNT_E_UNSUPPORTED_FORMAT
)
&&
!
(
info
->
flags
&
WAVE_FORMAT_DIRECT
))
ret
=
WINMM_MapDevice
(
device
,
TRUE
,
is_out
);
else
...
...
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