From 7e44ea593f373695c20cf837d66cf20fbefee513 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Mon, 26 Jul 2010 07:34:55 +0000 Subject: fix memory leak in QXmppStream constructor --- source/QXmppStream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/QXmppStream.cpp') 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); -- cgit v1.2.3