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
cf1b9fe2
Commit
cf1b9fe2
authored
Jan 29, 2019
by
Sven Baars
Committed by
Alexandre Julliard
Jan 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Free the device after a callback (Valgrind).
Signed-off-by:
Sven Baars
<
sven.wine@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2543295a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
dinput_main.c
dlls/dinput/dinput_main.c
+4
-0
No files found.
dlls/dinput/dinput_main.c
View file @
cf1b9fe2
...
@@ -1104,10 +1104,12 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
...
@@ -1104,10 +1104,12 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
if
(
lpCallback
(
&
didevis
[
i
],
lpdid
,
callbackFlags
,
--
remain
,
pvRef
)
==
DIENUM_STOP
)
if
(
lpCallback
(
&
didevis
[
i
],
lpdid
,
callbackFlags
,
--
remain
,
pvRef
)
==
DIENUM_STOP
)
{
{
IDirectInputDevice_Release
(
lpdid
);
HeapFree
(
GetProcessHeap
(),
0
,
didevis
);
HeapFree
(
GetProcessHeap
(),
0
,
didevis
);
HeapFree
(
GetProcessHeap
(),
0
,
username_w
);
HeapFree
(
GetProcessHeap
(),
0
,
username_w
);
return
DI_OK
;
return
DI_OK
;
}
}
IDirectInputDevice_Release
(
lpdid
);
}
}
HeapFree
(
GetProcessHeap
(),
0
,
didevis
);
HeapFree
(
GetProcessHeap
(),
0
,
didevis
);
...
@@ -1130,9 +1132,11 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
...
@@ -1130,9 +1132,11 @@ static HRESULT WINAPI IDirectInput8AImpl_EnumDevicesBySemantics(
if
(
lpCallback
(
&
didevi
,
lpdid
,
callbackFlags
,
--
remain
,
pvRef
)
==
DIENUM_STOP
)
if
(
lpCallback
(
&
didevi
,
lpdid
,
callbackFlags
,
--
remain
,
pvRef
)
==
DIENUM_STOP
)
{
{
IDirectInputDevice_Release
(
lpdid
);
HeapFree
(
GetProcessHeap
(),
0
,
username_w
);
HeapFree
(
GetProcessHeap
(),
0
,
username_w
);
return
DI_OK
;
return
DI_OK
;
}
}
IDirectInputDevice_Release
(
lpdid
);
}
}
}
}
...
...
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