Commit 61ab042d authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Don't leak QTimer

Make sure it's parented so it eventually gets cleaned up.

Found using ASAN.
parent 8810bf34
......@@ -20,7 +20,7 @@ namespace KWin
KeyboardRepeat::KeyboardRepeat(Xkb *xkb)
: QObject()
, m_timer(new QTimer)
, m_timer(new QTimer(this))
, m_xkb(xkb)
connect(m_timer, &QTimer::timeout, this, &KeyboardRepeat::handleKeyRepeat);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment