From 4bc5b8cc98f9384a90eafb4bb83b6254efa4472a Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Fri, 6 Sep 2013 13:36:16 +0200 Subject: [PATCH] * This should fix the CrashReporter crashing (*cough*) when not sending the report. --- src/crashreporter/CrashReporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/crashreporter/CrashReporter.cpp b/src/crashreporter/CrashReporter.cpp index e4fbfb7b7..a1f1303c2 100644 --- a/src/crashreporter/CrashReporter.cpp +++ b/src/crashreporter/CrashReporter.cpp @@ -31,7 +31,8 @@ CrashReporter::CrashReporter( const QUrl& url, const QStringList& args ) - : m_url( url ) + : m_reply( 0 ) + , m_url( url ) { setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) ); @@ -136,7 +137,6 @@ CrashReporter::send() body += "\r\n"; body += "--thkboundary--\r\n"; - QNetworkAccessManager* nam = new QNetworkAccessManager( this ); m_request->setHeader( QNetworkRequest::ContentTypeHeader, "multipart/form-data; boundary=thkboundary" ); m_reply = nam->post( *m_request, body );