summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorFrançois Andriot <[email protected]>2014-09-07 00:51:50 +0200
committerSlávek Banko <[email protected]>2014-09-07 00:51:50 +0200
commite17513956503963f4d468342a5be6a0967aca97c (patch)
tree4055c4a497a5c3725705daa55822c99a6361aebe /src/widgets
parenta28cbf4837fbb1094ff790bf53cbec2dcab94a60 (diff)
downloadqt3-e17513956503963f4d468342a5be6a0967aca97c.tar.gz
qt3-e17513956503963f4d468342a5be6a0967aca97c.zip
Fix FTBFS on Linux specific memlock code
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/qlineedit.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widgets/qlineedit.cpp b/src/widgets/qlineedit.cpp
index 2a71656..629e17e 100644
--- a/src/widgets/qlineedit.cpp
+++ b/src/widgets/qlineedit.cpp
@@ -461,7 +461,9 @@ QLineEdit::~QLineEdit()
{
if ((d->echoMode == NoEcho) || (d->echoMode == Password) || (d->echoMode == PasswordThreeStars)) {
d->text.fill(QChar(0));
+#if defined(Q_OS_LINUX)
munlock(d->text.d->unicode, LINUX_MEMLOCK_LIMIT_BYTES);
+#endif
}
delete [] d->maskData;
delete d;