The destructor unregisters the HID mouse, so it was not reported as a leak, but it must still be called.