Cancel NSURLConnections before releasing them.

Task-number: QTBUG-37042

Change-Id: I7ddcbc315b4b720e7da7880fc00731c28beb4bb2
Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@digia.com>
This commit is contained in:
Morten Johan Sørvig 2014-02-26 12:27:37 +01:00 committed by The Qt Project
parent f79202805e
commit 1bd56022a5

View File

@ -128,6 +128,7 @@ QNetworkReplyNSURLConnectionImplPrivate::QNetworkReplyNSURLConnectionImplPrivate
QNetworkReplyNSURLConnectionImplPrivate::~QNetworkReplyNSURLConnectionImplPrivate()
{
[urlConnection cancel];
[urlConnection release];
[urlConnectionDelegate release];
if (readStream)