aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppStream.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-07-26 07:34:55 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-07-26 07:34:55 +0000
commit7e44ea593f373695c20cf837d66cf20fbefee513 (patch)
tree0736f5e9a66053bdbd8ff979dc7d2118b250fbfc /source/QXmppStream.cpp
parent9882dd7a34cb6e41bb0d54b64c45c3a4987000d5 (diff)
downloadqxmpp-7e44ea593f373695c20cf837d66cf20fbefee513.tar.gz
fix memory leak in QXmppStream constructor
Diffstat (limited to 'source/QXmppStream.cpp')
-rw-r--r--source/QXmppStream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/QXmppStream.cpp b/source/QXmppStream.cpp
index fc8f6f4e..319d4f5e 100644
--- a/source/QXmppStream.cpp
+++ b/source/QXmppStream.cpp
@@ -97,11 +97,11 @@ QXmppStream::QXmppStream(QObject *parent)
Q_ASSERT(check);
// XEP-0199: XMPP Ping
- m_pingTimer = new QTimer();
+ m_pingTimer = new QTimer(this);
check = QObject::connect(m_pingTimer, SIGNAL(timeout()), this, SLOT(pingSend()));
Q_ASSERT(check);
- m_timeoutTimer = new QTimer();
+ m_timeoutTimer = new QTimer(this);
m_timeoutTimer->setSingleShot(true);
check = QObject::connect(m_timeoutTimer, SIGNAL(timeout()), this, SLOT(pingTimeout()));
Q_ASSERT(check);