Skip to content

Commit

Permalink
GlobalShortcutWin: fix memory leak of 'di' in new XInputCheck code path.
Browse files Browse the repository at this point in the history
(cherry picked from commit 888a459)
  • Loading branch information
mkrautz committed Mar 5, 2016
1 parent 8e98894 commit 86aac08
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mumble/GlobalShortcut_win.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,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;
return DIENUM_CONTINUE;
}

Expand Down

0 comments on commit 86aac08

Please sign in to comment.