diff options
author | François Andriot <francois.andriot@free.fr> | 2014-09-07 00:51:53 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2014-09-07 00:51:53 +0200 |
commit | 9c2ce91a364c22f9b232eb40f3c2a392360ed21c (patch) | |
tree | fe4426256c61f548b5b3ac4c30a55b7541f996fa /src/widgets | |
parent | 6d4396b3b55acb110e6ac238bf346f581f621052 (diff) | |
download | tqt3-9c2ce91a364c22f9b232eb40f3c2a392360ed21c.tar.gz tqt3-9c2ce91a364c22f9b232eb40f3c2a392360ed21c.zip |
Fix FTBFS on Linux specific memlock code
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/qlineedit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/qlineedit.cpp b/src/widgets/qlineedit.cpp index 2cc64e017..196e097ce 100644 --- a/src/widgets/qlineedit.cpp +++ b/src/widgets/qlineedit.cpp @@ -461,7 +461,9 @@ TQLineEdit::~TQLineEdit() { if ((d->echoMode == NoEcho) || (d->echoMode == Password) || (d->echoMode == PasswordThreeStars)) { d->text.fill(TQChar(0)); +#if defined(Q_OS_LINUX) munlock(d->text.d->unicode, LINUX_MEMLOCK_LIMIT_BYTES); +#endif } delete [] d->maskData; delete d; |