Commit 6618e76b authored by Justin Link's avatar Justin Link Committed by Pier Angelo Vendrame
Browse files

Bug 2028274: Removed incorrect CloseHandle() in ~KeyWatcher() and also ensure...

Bug 2028274: Removed incorrect CloseHandle() in ~KeyWatcher() and also ensure that no in-flight callbacks are still going to fire r=win-reviewers,gstoll

Differential Revision: https://phabricator.services.mozilla.com/D291328
parent a4feb44d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -314,8 +314,7 @@ bool KeyWatcher::Register() {

KeyWatcher::~KeyWatcher() {
  if (mWaitObject) {
    UnregisterWait(mWaitObject);
    CloseHandle(mWaitObject);
    UnregisterWaitEx(mWaitObject, INVALID_HANDLE_VALUE);
  }
  if (mEvent) {
    CloseHandle(mEvent);