Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6a8bf96d
Commit
6a8bf96d
authored
Jun 03, 2007
by
Vitaliy Margolen
Committed by
Alexandre Julliard
Jun 04, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Make sure to unacquire device before freeing it.
parent
0c503def
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
2 deletions
+6
-2
joystick_linux.c
dlls/dinput/joystick_linux.c
+2
-0
joystick_linuxinput.c
dlls/dinput/joystick_linuxinput.c
+2
-0
keyboard.c
dlls/dinput/keyboard.c
+1
-1
mouse.c
dlls/dinput/mouse.c
+1
-1
No files found.
dlls/dinput/joystick_linux.c
View file @
6a8bf96d
...
@@ -646,6 +646,8 @@ static ULONG WINAPI JoystickAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
...
@@ -646,6 +646,8 @@ static ULONG WINAPI JoystickAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
if
(
ref
)
if
(
ref
)
return
ref
;
return
ref
;
IDirectInputDevice_Unacquire
(
iface
);
/* Free the device name */
/* Free the device name */
HeapFree
(
GetProcessHeap
(),
0
,
This
->
name
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
name
);
...
...
dlls/dinput/joystick_linuxinput.c
View file @
6a8bf96d
...
@@ -516,6 +516,8 @@ static ULONG WINAPI JoystickAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
...
@@ -516,6 +516,8 @@ static ULONG WINAPI JoystickAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
if
(
ref
)
if
(
ref
)
return
ref
;
return
ref
;
IDirectInputDevice_Unacquire
(
iface
);
/* Reset the FF state, free all effects, etc */
/* Reset the FF state, free all effects, etc */
IDirectInputDevice8_SendForceFeedbackCommand
(
iface
,
DISFFC_RESET
);
IDirectInputDevice8_SendForceFeedbackCommand
(
iface
,
DISFFC_RESET
);
...
...
dlls/dinput/keyboard.c
View file @
6a8bf96d
...
@@ -281,7 +281,7 @@ static ULONG WINAPI SysKeyboardAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
...
@@ -281,7 +281,7 @@ static ULONG WINAPI SysKeyboardAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
ref
=
InterlockedDecrement
(
&
This
->
base
.
ref
);
ref
=
InterlockedDecrement
(
&
This
->
base
.
ref
);
if
(
ref
)
return
ref
;
if
(
ref
)
return
ref
;
set_dinput_hook
(
WH_KEYBOARD_LL
,
NULL
);
IDirectInputDevice_Unacquire
(
iface
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
base
.
data_queue
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
base
.
data_queue
);
...
...
dlls/dinput/mouse.c
View file @
6a8bf96d
...
@@ -268,7 +268,7 @@ static ULONG WINAPI SysMouseAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
...
@@ -268,7 +268,7 @@ static ULONG WINAPI SysMouseAImpl_Release(LPDIRECTINPUTDEVICE8A iface)
if
(
ref
)
if
(
ref
)
return
ref
;
return
ref
;
set_dinput_hook
(
WH_MOUSE_LL
,
NULL
);
IDirectInputDevice_Unacquire
(
iface
);
/* Free the data queue */
/* Free the data queue */
HeapFree
(
GetProcessHeap
(),
0
,
This
->
base
.
data_queue
);
HeapFree
(
GetProcessHeap
(),
0
,
This
->
base
.
data_queue
);
...
...
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