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
34b0161d
Commit
34b0161d
authored
Apr 25, 2007
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Apr 25, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa: Do not check for non-NULL before HeapFree'ing a variable as the check is redundant.
parent
5f62da10
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
mixer.c
dlls/winealsa.drv/mixer.c
+3
-6
No files found.
dlls/winealsa.drv/mixer.c
View file @
34b0161d
...
...
@@ -505,10 +505,8 @@ static void ALSA_MixerInit(void)
eclose:
WARN
(
"Error occured initialising mixer: %s
\n
"
,
snd_strerror
(
err
));
if
(
mixdev
[
mixnum
].
lines
)
HeapFree
(
GetProcessHeap
(),
0
,
mixdev
[
mixnum
].
lines
);
if
(
mixdev
[
mixnum
].
controls
)
HeapFree
(
GetProcessHeap
(),
0
,
mixdev
[
mixnum
].
controls
);
HeapFree
(
GetProcessHeap
(),
0
,
mixdev
[
mixnum
].
lines
);
HeapFree
(
GetProcessHeap
(),
0
,
mixdev
[
mixnum
].
controls
);
snd_mixer_close
(
mixdev
[
mixnum
].
mix
);
}
cards
=
mixnum
;
...
...
@@ -649,8 +647,7 @@ static DWORD WINAPI ALSA_MixerPollThread(LPVOID lParam)
die:
TRACE
(
"Shutting down
\n
"
);
if
(
pfds
)
HeapFree
(
GetProcessHeap
(),
0
,
pfds
);
HeapFree
(
GetProcessHeap
(),
0
,
pfds
);
y
=
read
(
msg_pipe
[
0
],
&
x
,
sizeof
(
x
));
close
(
msg_pipe
[
1
]);
...
...
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