dinput: AddRef and Release parent DirectInput class.[try 2]

Vitaliy Margolen wine-patches at kievinfo.com
Fri Dec 22 11:54:29 CST 2006


Last try was missing Release in tests, which triggered test failure.

And don't forget to free memory on error.
This fixes bug 6918.
---
 dlls/dinput/joystick_linux.c      |    4 ++--
 dlls/dinput/joystick_linuxinput.c |    4 ++++
 dlls/dinput/keyboard.c            |   10 +++++++++-
 dlls/dinput/mouse.c               |    5 +++++
 dlls/dinput/tests/keyboard.c      |    2 ++
 dlls/dinput/tests/mouse.c         |    4 +++-
 6 files changed, 25 insertions(+), 4 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 8f7cd0f13b23b75167934bbd71a58e29a157d592.diff
Type: text/x-patch
Size: 5739 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20061222/da7819e9/8f7cd0f13b23b75167934bbd71a58e29a157d592.bin


More information about the wine-patches mailing list