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
5771ff89
Commit
5771ff89
authored
Jan 05, 2014
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmusic: Don't leak mem if DirectMusicCollection creation fails.
parent
d3c550d0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
collection.c
dlls/dmusic/collection.c
+6
-2
No files found.
dlls/dmusic/collection.c
View file @
5771ff89
...
...
@@ -805,6 +805,7 @@ static const IPersistStreamVtbl DirectMusicCollection_PersistStream_Vtbl = {
HRESULT
WINAPI
DMUSIC_CreateDirectMusicCollectionImpl
(
LPCGUID
lpcGUID
,
LPVOID
*
ppobj
,
LPUNKNOWN
pUnkOuter
)
{
IDirectMusicCollectionImpl
*
obj
;
HRESULT
hr
;
*
ppobj
=
NULL
;
if
(
pUnkOuter
)
...
...
@@ -821,8 +822,11 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicCollectionImpl(LPCGUID lpcGUID, LPVOID* p
DM_STRUCT_INIT
(
obj
->
pDesc
);
obj
->
pDesc
->
dwValidData
|=
DMUS_OBJ_CLASS
;
obj
->
pDesc
->
guidClass
=
CLSID_DirectMusicCollection
;
obj
->
ref
=
0
;
/* will be inited by QueryInterface */
obj
->
ref
=
1
;
list_init
(
&
obj
->
Instruments
);
return
IDirectMusicCollection_QueryInterface
(
&
obj
->
IDirectMusicCollection_iface
,
lpcGUID
,
ppobj
);
hr
=
IDirectMusicCollection_QueryInterface
(
&
obj
->
IDirectMusicCollection_iface
,
lpcGUID
,
ppobj
);
IDirectMusicCollection_Release
(
&
obj
->
IDirectMusicCollection_iface
);
return
hr
;
}
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