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
e4e3c0b4
Commit
e4e3c0b4
authored
Nov 26, 2019
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmstyle: Free lists when IDirectMusicStyleImpl is destroyed.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b9a50481
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
style.c
dlls/dmstyle/style.c
+19
-1
No files found.
dlls/dmstyle/style.c
View file @
e4e3c0b4
...
...
@@ -108,7 +108,25 @@ static ULONG WINAPI IDirectMusicStyle8Impl_Release(IDirectMusicStyle8 *iface)
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
HeapFree
(
GetProcessHeap
(),
0
,
This
);
struct
style_band
*
band
,
*
band2
;
struct
style_motif
*
motif
,
*
motif2
;
struct
style_partref_item
*
item
,
*
item2
;
LIST_FOR_EACH_ENTRY_SAFE
(
band
,
band2
,
&
This
->
bands
,
struct
style_band
,
entry
)
{
list_remove
(
&
band
->
entry
);
if
(
band
->
pBand
)
IDirectMusicBand_Release
(
band
->
pBand
);
heap_free
(
band
);
}
LIST_FOR_EACH_ENTRY_SAFE
(
motif
,
motif2
,
&
This
->
motifs
,
struct
style_motif
,
entry
)
{
list_remove
(
&
motif
->
entry
);
LIST_FOR_EACH_ENTRY_SAFE
(
item
,
item2
,
&
motif
->
Items
,
struct
style_partref_item
,
entry
)
{
list_remove
(
&
item
->
entry
);
heap_free
(
item
);
}
heap_free
(
motif
);
}
heap_free
(
This
);
DMSTYLE_UnlockModule
();
}
...
...
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