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
adc6948c
Commit
adc6948c
authored
Sep 10, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Sep 10, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove lock name from lock debug structure before deletion so it gets
freed properly.
parent
3d7299b7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
buffer.c
dlls/dsound/buffer.c
+2
-0
capture.c
dlls/dsound/capture.c
+2
-0
dsound.c
dlls/dsound/dsound.c
+2
-0
No files found.
dlls/dsound/buffer.c
View file @
adc6948c
...
...
@@ -394,6 +394,7 @@ static DWORD WINAPI IDirectSoundBufferImpl_Release(LPDIRECTSOUNDBUFFER8 iface)
DSOUND_RemoveBuffer
(
This
->
dsound
,
This
);
This
->
lock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
(
This
->
lock
));
if
(
This
->
hwbuf
)
{
...
...
@@ -1223,6 +1224,7 @@ HRESULT WINAPI IDirectSoundBufferImpl_Create(
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
buffer
->
memory
);
if
(
dsb
->
buffer
)
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
buffer
);
dsb
->
lock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
(
dsb
->
lock
));
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
pwfx
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
);
...
...
dlls/dsound/capture.c
View file @
adc6948c
...
...
@@ -415,6 +415,7 @@ IDirectSoundCaptureImpl_Release( LPDIRECTSOUNDCAPTURE iface )
if
(
This
->
pwfx
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
pwfx
);
This
->
lock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
(
This
->
lock
)
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
dsound_capture
=
NULL
;
...
...
@@ -1787,6 +1788,7 @@ IDirectSoundFullDuplexImpl_Release( LPDIRECTSOUNDFULLDUPLEX iface )
LeaveCriticalSection
(
&
(
This
->
lock
)
);
if
(
uRef
==
0
)
{
This
->
lock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
(
This
->
lock
)
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
TRACE
(
"(%p) released
\n
"
,
This
);
...
...
dlls/dsound/dsound.c
View file @
adc6948c
...
...
@@ -302,6 +302,7 @@ static ULONG WINAPI IDirectSoundImpl_Release(
IDsDriver_Release
(
This
->
driver
);
RtlDeleteResource
(
&
This
->
buffer_list_lock
);
This
->
mixlock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
This
->
mixlock
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
dsound
=
NULL
;
...
...
@@ -604,6 +605,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
hres
=
DSOUND_AddBuffer
(
This
,
dsb
);
if
(
hres
!=
DS_OK
)
{
IDirectSoundBuffer8_Release
(
psb
);
dsb
->
lock
.
DebugInfo
->
Spare
[
1
]
=
0
;
DeleteCriticalSection
(
&
(
dsb
->
lock
));
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
buffer
);
HeapFree
(
GetProcessHeap
(),
0
,
dsb
->
pwfx
);
...
...
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