Commit 964bf968 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

user32: Free rawinput device preparsed data for mouse and keyboard.

parent c2c78a2f
......@@ -226,6 +226,8 @@ static void find_devices(void)
device->info.dwType = RIM_TYPEMOUSE;
device->info.u.mouse = mouse_info;
HidD_FreePreparsedData(device->data);
device->data = NULL;
}
SetupDiDestroyDeviceInfoList(set);
......@@ -241,6 +243,8 @@ static void find_devices(void)
device->info.dwType = RIM_TYPEKEYBOARD;
device->info.u.keyboard = keyboard_info;
HidD_FreePreparsedData(device->data);
device->data = NULL;
}
SetupDiDestroyDeviceInfoList(set);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment