Skip to content
Browse files

GlobalShortcutWin: fix memory leak of 'di' in new XInputCheck code path.

  • Loading branch information...
mkrautz committed Mar 5, 2016
1 parent bc12e8e commit 888a459b6581640850cd45105c7d9203bfdc1cb7
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/mumble/GlobalShortcut_win.cpp
@@ -457,6 +457,7 @@ BOOL GlobalShortcutWin::EnumDevicesCB(LPCDIDEVICEINSTANCE pdidi, LPVOID pContext
// for more information.
if (XInputCheck_IsGuidProductXInputDevice(&id->guidproduct)) {
qWarning("GlobalShortcutWin: excluded XInput device '%s' (%s) from DirectInput", qPrintable(id->name), qPrintable(id->vguid.toString()));
delete id;

0 comments on commit 888a459

Please sign in to comment.
You can’t perform that action at this time.