diff options
author | Steffen Kieß <kiess@ki4.de> | 2020-08-24 15:09:17 +0200 |
---|---|---|
committer | Steffen Kieß <kiess@ki4.de> | 2020-08-26 01:12:59 +0200 |
commit | 2cb8568ab2a173fdc4d00d603df236078886802e (patch) | |
tree | b4d7b73f8129b615a1c08f47f9a7ae79230c2b13 /src | |
parent | afd34d74b80061fad0cd7cf369b59931ce1aede4 (diff) | |
download | qtbase-2cb8568ab2a173fdc4d00d603df236078886802e.tar.gz |
Properly free m_mtdev when mtdev_open() returns an error
Pick-to: 5.15
Change-Id: I57813da1eafe9fbc9d60b865e867558791e34528
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp index 313d201515..1983a46afb 100644 --- a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp +++ b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp @@ -254,6 +254,7 @@ QEvdevTouchScreenHandler::QEvdevTouchScreenHandler(const QString &device, const if (mtdeverr) { qWarning("evdevtouch: mtdev_open failed: %d", mtdeverr); QT_CLOSE(m_fd); + free(m_mtdev); return; } #endif |