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
d604b4bd
Commit
d604b4bd
authored
Mar 28, 1999
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Authors: Chris Morgan <cmorgan@wpi.edu>, James Abbatiello <abbeyj@wpi.edu>
Fixed memory leak in waveOutOpen/waveOutClose.
parent
610b001d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
mmsystem.c
multimedia/mmsystem.c
+10
-1
No files found.
multimedia/mmsystem.c
View file @
d604b4bd
...
@@ -3288,6 +3288,12 @@ UINT16 WINAPI waveOutOpen16(HWAVEOUT16* lphWaveOut, UINT16 uDeviceID,
...
@@ -3288,6 +3288,12 @@ UINT16 WINAPI waveOutOpen16(HWAVEOUT16* lphWaveOut, UINT16 uDeviceID,
if
(
dwFlags
&
WAVE_FORMAT_QUERY
)
{
if
(
dwFlags
&
WAVE_FORMAT_QUERY
)
{
TRACE
(
mmsys
,
"End of WAVE_FORMAT_QUERY !
\n
"
);
TRACE
(
mmsys
,
"End of WAVE_FORMAT_QUERY !
\n
"
);
dwRet
=
waveOutClose
(
hWaveOut
);
dwRet
=
waveOutClose
(
hWaveOut
);
if
(
lphWaveOut
)
*
lphWaveOut
=
0
;
}
else
if
(
dwRet
!=
MMSYSERR_NOERROR
)
{
USER_HEAP_FREE
(
hWaveOut
);
if
(
lphWaveOut
)
*
lphWaveOut
=
0
;
}
}
return
dwRet
;
return
dwRet
;
}
}
...
@@ -3306,12 +3312,15 @@ UINT WINAPI waveOutClose(HWAVEOUT hWaveOut)
...
@@ -3306,12 +3312,15 @@ UINT WINAPI waveOutClose(HWAVEOUT hWaveOut)
UINT16
WINAPI
waveOutClose16
(
HWAVEOUT16
hWaveOut
)
UINT16
WINAPI
waveOutClose16
(
HWAVEOUT16
hWaveOut
)
{
{
LPWAVEOPENDESC
lpDesc
;
LPWAVEOPENDESC
lpDesc
;
DWORD
dwRet
=
0
;
TRACE
(
mmsys
,
"(%04X)
\n
"
,
hWaveOut
);
TRACE
(
mmsys
,
"(%04X)
\n
"
,
hWaveOut
);
lpDesc
=
(
LPWAVEOPENDESC
)
USER_HEAP_LIN_ADDR
(
hWaveOut
);
lpDesc
=
(
LPWAVEOPENDESC
)
USER_HEAP_LIN_ADDR
(
hWaveOut
);
if
(
lpDesc
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
if
(
lpDesc
==
NULL
)
return
MMSYSERR_INVALHANDLE
;
return
wodMessage
(
lpDesc
->
uDeviceID
,
WODM_CLOSE
,
lpDesc
->
dwInstance
,
0L
,
0L
);
dwRet
=
wodMessage
(
lpDesc
->
uDeviceID
,
WODM_CLOSE
,
lpDesc
->
dwInstance
,
0L
,
0L
);
USER_HEAP_FREE
(
hWaveOut
);
return
dwRet
;
}
}
/**************************************************************************
/**************************************************************************
...
...
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