From 19434a492ca4be674af3c44865b533e3dee3355d Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Thu, 30 Jan 2014 22:58:28 +0000 Subject: [PATCH] Add debug output to diagnose authFailed crashes. --- src/libtomahawk/network/ConnectionManager.cpp | 2 ++ src/libtomahawk/sip/PeerInfo.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/libtomahawk/network/ConnectionManager.cpp b/src/libtomahawk/network/ConnectionManager.cpp index d3843d973..544f41135 100644 --- a/src/libtomahawk/network/ConnectionManager.cpp +++ b/src/libtomahawk/network/ConnectionManager.cpp @@ -129,6 +129,8 @@ ConnectionManager::authFailed() disconnect( d->controlConnection.data(), SIGNAL( authFailed() ), this, SLOT( authFailed() ) ); disconnect( d->controlConnection.data(), SIGNAL( authTimeout() ), this, SLOT( authFailed() ) ); + peerInfoDebug( d->currentPeerInfo ) << Q_FUNC_INFO << "Connection authentication failed"; + // Only retry if we have any retries left. if (!d->currentPeerInfo->sipInfos().isEmpty()) { // If auth failed, we need to setup a new controlconnection as the old will be destroyed. diff --git a/src/libtomahawk/sip/PeerInfo.cpp b/src/libtomahawk/sip/PeerInfo.cpp index da33ebaea..aea61876a 100644 --- a/src/libtomahawk/sip/PeerInfo.cpp +++ b/src/libtomahawk/sip/PeerInfo.cpp @@ -125,6 +125,8 @@ PeerInfo::~PeerInfo() { Q_D( PeerInfo ); + tLog( LOGVERBOSE ) << Q_FUNC_INFO; + delete d->avatar; delete d->fancyAvatar; delete d_ptr;