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
8975ad6e
Commit
8975ad6e
authored
Dec 30, 2011
by
Pierre Schweitzer
Committed by
Alexandre Julliard
Jan 03, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio.drv: Fix handle leak.
parent
747a26d9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
midi.c
dlls/winecoreaudio.drv/midi.c
+1
-1
No files found.
dlls/winecoreaudio.drv/midi.c
View file @
8975ad6e
...
@@ -128,7 +128,7 @@ LONG CoreAudio_MIDIInit(void)
...
@@ -128,7 +128,7 @@ LONG CoreAudio_MIDIInit(void)
InitializeCriticalSection
(
&
midiInLock
);
InitializeCriticalSection
(
&
midiInLock
);
midiInLock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": midiInLock"
);
midiInLock
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": midiInLock"
);
MIDIInThreadPortName
=
CFStringCreateWithFormat
(
kCFAllocatorDefault
,
NULL
,
CFSTR
(
"MIDIInThreadPortName.%u"
),
getpid
());
MIDIInThreadPortName
=
CFStringCreateWithFormat
(
kCFAllocatorDefault
,
NULL
,
CFSTR
(
"MIDIInThreadPortName.%u"
),
getpid
());
C
reateThread
(
NULL
,
0
,
MIDIIn_MessageThread
,
NULL
,
0
,
NULL
);
C
loseHandle
(
CreateThread
(
NULL
,
0
,
MIDIIn_MessageThread
,
NULL
,
0
,
NULL
)
);
name
=
CFStringCreateWithFormat
(
kCFAllocatorDefault
,
NULL
,
CFSTR
(
"WineInputPort.%u"
),
getpid
());
name
=
CFStringCreateWithFormat
(
kCFAllocatorDefault
,
NULL
,
CFSTR
(
"WineInputPort.%u"
),
getpid
());
MIDIInputPortCreate
(
wineMIDIClient
,
name
,
MIDIIn_ReadProc
,
NULL
,
&
MIDIInPort
);
MIDIInputPortCreate
(
wineMIDIClient
,
name
,
MIDIIn_ReadProc
,
NULL
,
&
MIDIInPort
);
...
...
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