From 7e6460e42991e91a2a82a71283b61be1ef572dad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Fri, 31 Jul 2015 02:29:07 +0200 Subject: [PATCH] Close Linux FFBDevice is capability query fails. --- linuxdeviceprober.cpp | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.43.5