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 );