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
e44a0d6d
Commit
e44a0d6d
authored
Mar 09, 2007
by
Chris Robinson
Committed by
Alexandre Julliard
Mar 09, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
quartz: Check allocation failure and clear memory in DSound Renderer.
parent
08670ee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dsoundrender.c
dlls/quartz/dsoundrender.c
+9
-4
No files found.
dlls/quartz/dsoundrender.c
View file @
e44a0d6d
...
...
@@ -316,18 +316,23 @@ HRESULT DSoundRender_create(IUnknown * pUnkOuter, LPVOID * ppv)
return
CLASS_E_NOAGGREGATION
;
pDSoundRender
=
CoTaskMemAlloc
(
sizeof
(
DSoundRenderImpl
));
if
(
!
pDSoundRender
)
return
E_OUTOFMEMORY
;
ZeroMemory
(
pDSoundRender
,
sizeof
(
DSoundRenderImpl
));
pDSoundRender
->
lpVtbl
=
&
DSoundRender_Vtbl
;
pDSoundRender
->
IBasicAudio_vtbl
=
&
IBasicAudio_Vtbl
;
pDSoundRender
->
refCount
=
1
;
InitializeCriticalSection
(
&
pDSoundRender
->
csFilter
);
pDSoundRender
->
state
=
State_Stopped
;
pDSoundRender
->
pClock
=
NULL
;
pDSoundRender
->
init
=
FALSE
;
pDSoundRender
->
started
=
FALSE
;
ZeroMemory
(
&
pDSoundRender
->
filterInfo
,
sizeof
(
FILTER_INFO
));
pDSoundRender
->
ppPins
=
CoTaskMemAlloc
(
1
*
sizeof
(
IPin
*
));
if
(
!
pDSoundRender
->
ppPins
)
{
DeleteCriticalSection
(
&
pDSoundRender
->
csFilter
);
CoTaskMemFree
(
pDSoundRender
);
return
E_OUTOFMEMORY
;
}
/* construct input pin */
piInput
.
dir
=
PINDIR_INPUT
;
...
...
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