Fix double close.

resetTty() already does close the fd.
Fixes coverity CID89074.

Change-Id: I2d5fe9bf40b03ed5c249713c64f1dc2ae58ea84b
Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com>
This commit is contained in:
Frank Meerkoetter 2015-12-18 21:59:53 +01:00
parent 1663bdbf15
commit 4501e25a51

View File

@ -292,10 +292,8 @@ QLinuxFbScreen::~QLinuxFbScreen()
close(mFbFd);
}
if (mTtyFd != -1) {
if (mTtyFd != -1)
resetTty(mTtyFd, mOldTtyMode);
close(mTtyFd);
}
delete mBlitter;
}