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
ad0dbe3e
Commit
ad0dbe3e
authored
Jul 25, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Don't leak memory in the cache.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3531e50c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
loader.c
dlls/dmloader/loader.c
+2
-2
No files found.
dlls/dmloader/loader.c
View file @
ad0dbe3e
...
...
@@ -172,9 +172,7 @@ static ULONG WINAPI IDirectMusicLoaderImpl_Release(IDirectMusicLoader8 *iface)
if
(
!
ref
)
{
unsigned
int
i
;
/* Firstly, release the cache */
IDirectMusicLoader8_ClearCache
(
iface
,
&
GUID_DirectMusicAllTypes
);
/* FIXME: Release all allocated entries */
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
classes
);
i
++
)
HeapFree
(
GetProcessHeap
(),
0
,
This
->
search_paths
[
i
]);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -806,6 +804,8 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_ClearCache(IDirectMusicLoader8 *ifa
(
obj
->
Desc
.
dwValidData
&
DMUS_OBJ_LOADED
))
{
/* basically, wrap to ReleaseObject for each object found */
IDirectMusicLoader8_ReleaseObject
(
iface
,
obj
->
pObject
);
list_remove
(
&
obj
->
entry
);
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
}
}
...
...
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