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
05fb2c89
Commit
05fb2c89
authored
Jun 18, 2003
by
Robert Reif
Committed by
Alexandre Julliard
Jun 18, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a reference counting bug I introduced.
parent
c5f775a9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
primary.c
dlls/dsound/primary.c
+1
-8
sound3d.c
dlls/dsound/sound3d.c
+2
-1
No files found.
dlls/dsound/primary.c
View file @
05fb2c89
...
...
@@ -571,20 +571,13 @@ static DWORD WINAPI PrimaryBufferImpl_Release(LPDIRECTSOUNDBUFFER8 iface) {
ref
=
InterlockedDecrement
(
&
(
This
->
ref
));
/* the listener has a reference to us which must be removed */
if
((
ref
==
0
)
||
((
ref
==
1
)
&&
(
This
->
dsound
->
listener
)))
{
if
(
ref
==
0
)
{
IDirectSound_Release
((
LPDIRECTSOUND
)
This
->
dsound
);
if
(
This
->
dsound
->
listener
)
{
IDirectSound3DListener_Release
((
LPDIRECTSOUND3DLISTENER
)
This
->
dsound
->
listener
);
This
->
dsound
->
listener
=
NULL
;
ref
--
;
}
#if 0
if (This->iks) {
HeapFree(GetProcessHeap(), 0, This->iks);
}
#endif
HeapFree
(
GetProcessHeap
(),
0
,
This
);
}
...
...
dlls/dsound/sound3d.c
View file @
05fb2c89
...
...
@@ -1042,7 +1042,8 @@ HRESULT WINAPI IDirectSound3DListenerImpl_Create(
InitializeCriticalSection
(
&
dsl
->
lock
);
dsl
->
dsb
=
This
;
IDirectSoundBuffer8_AddRef
((
LPDIRECTSOUNDBUFFER8
)
This
);
/* NOTE: don't add a reference because it would cause a circular reference */
/* IDirectSoundBuffer8_AddRef((LPDIRECTSOUNDBUFFER8)This); */
*
pdsl
=
dsl
;
return
S_OK
;
...
...
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