user32: Fix a memory leak.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit 7c8cf96e9c)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
oldstable
Zhiyi Zhang 2019-01-23 23:34:12 +08:00 committed by Michael Stefaniuc
parent e4b249f2e1
commit f0b022bdf5
1 changed files with 1 additions and 0 deletions

View File

@ -172,6 +172,7 @@ static void find_hid_devices(void)
done:
LeaveCriticalSection(&hid_devices_cs);
SetupDiDestroyDeviceInfoList(set);
heap_free(detail);
}