From: Michal MalĂ˝ Date: Fri, 31 Jul 2015 00:29:07 +0000 (+0200) Subject: Close Linux FFBDevice is capability query fails. X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=7e6460e42991e91a2a82a71283b61be1ef572dad;p=FFBChecker.git Close Linux FFBDevice is capability query fails. --- diff --git a/linuxdeviceprober.cpp b/linuxdeviceprober.cpp index 6134cee..62a9726 100644 --- a/linuxdeviceprober.cpp +++ b/linuxdeviceprober.cpp @@ -82,6 +82,7 @@ std::shared_ptr LinuxDeviceProber::openDevice(const QString& id) std::shared_ptr device(new LinuxFFBDevice(fd, maxEffectCount, id)); if (!device->queryDeviceCapabilities()) { QMessageBox::critical(nullptr, res_ffbdeviceErrCap, "Unable to query device capabilities."); + device->close(); return nullptr; }