Changeset 29515 in webkit
- Timestamp:
- Jan 16, 2008 1:38:40 AM (16 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r29514 r29515 1 2008-01-16 Simon Hausmann <hausmann@webkit.org> 2 3 Reviewed by Lars Knoll <lars@trolltech.com>. 4 5 Fix crashes in the new networking code. 6 7 When the ResourceLoader cancels the handle we have to make sure not to access 8 the resource handle afterwards again. 9 10 * platform/network/qt/QNetworkReplyHandler.cpp: 11 (WebCore::QNetworkReplyHandler::finish): 12 (WebCore::QNetworkReplyHandler::forwardData): 13 1 14 2008-01-16 Lars Knoll <lars@trolltech.com> 2 15 -
trunk/WebCore/platform/network/qt/QNetworkReplyHandler.cpp
r29514 r29515 67 67 void QNetworkReplyHandler::abort() 68 68 { 69 m_resourceHandle = 0; 69 70 if (m_reply) { 70 71 disconnect(m_reply, 0, this, 0); … … 78 79 sendResponseIfNeeded(); 79 80 81 if (!m_resourceHandle) 82 return; 80 83 ResourceHandleClient* client = m_resourceHandle->client(); 81 84 m_reply->deleteLater(); … … 97 100 void QNetworkReplyHandler::sendResponseIfNeeded() 98 101 { 99 if (m_responseSent )102 if (m_responseSent || !m_resourceHandle) 100 103 return; 101 104 m_responseSent = true; … … 164 167 return; 165 168 169 if (!m_resourceHandle) 170 return; 171 166 172 QByteArray data = m_reply->read(m_reply->bytesAvailable()); 167 173
Note: See TracChangeset
for help on using the changeset viewer.