abort() now emits the signals, so disconnect them before you abort()
authorhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2008 11:36:34 +0000 (11:36 +0000)
committerhausmann@webkit.org <hausmann@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 7 Jan 2008 11:36:34 +0000 (11:36 +0000)
Signed-off-by: Simon
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29224 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/network/qt/QNetworkReplyHandler.cpp

index 1f920fc..5daa01f 100644 (file)
@@ -1,3 +1,12 @@
+2008-01-07  Thiago Macieira  <thiago.macieira@trolltech.com>
+
+        Reviewed by Simon.
+
+        abort() now emits the signals, so disconnect them before you abort()
+
+        * platform/network/qt/QNetworkReplyHandler.cpp:
+        (WebCore::QNetworkReplyHandler::abort):
+
 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
 
         Reviewed by Lars.
index 10b54de..6907f7e 100644 (file)
@@ -63,6 +63,7 @@ QNetworkReplyHandler::QNetworkReplyHandler(ResourceHandle *handle)
 void QNetworkReplyHandler::abort()
 {
     if (m_reply) {
+        disconnect(m_reply, 0, this, 0);
         m_reply->abort();
         deleteLater();
     }