Cleanup in InputDevice

master
Kristóf Marussy 3 years ago
parent 1c209edaad
commit c261b6582c
No known key found for this signature in database
GPG Key ID: 59E156E31028BA29
  1. 4
      src/logid/InputDevice.cpp
  2. 1
      src/logid/InputDevice.h

@ -54,8 +54,10 @@ InputDevice::InputDevice(const char* name)
int err = libevdev_uinput_create_from_device(device,
LIBEVDEV_UINPUT_OPEN_MANAGED, &ui_device);
if(err != 0)
if(err != 0) {
libevdev_free(device);
throw std::system_error(-err, std::generic_category());
}
}
InputDevice::~InputDevice()

@ -20,6 +20,7 @@
#define LOGID_INPUTDEVICE_H
#include <memory>
#include <string>
extern "C"
{

Loading…
Cancel
Save