Changeset 85984 in webkit
- Timestamp:
- May 6, 2011 4:06:02 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r85975 r85984 1 2011-05-06 Martin Robinson <mrobinson@igalia.com> 2 3 Reviewed by Xan Lopez. 4 5 [Soup] ResourceHandles are leaked on 304 responses 6 https://bugs.webkit.org/show_bug.cgi?id=60413 7 8 Always call cleanupSoupRequestOperation, even when the request was not 9 canceled. Before the code would call didFinishLoading and then never clean up 10 the request. 11 12 No new tests. This simply fixes a memory leak. 13 14 * platform/network/soup/ResourceHandleSoup.cpp: 15 (WebCore::sendRequestCallback): 16 1 17 2011-05-06 Adam Barth <abarth@webkit.org> 2 18 -
trunk/Source/WebCore/platform/network/soup/ResourceHandleSoup.cpp
r85207 r85984 469 469 } 470 470 471 // didReceiveData above might have cancelled it 472 if (d->m_cancelled || !client) { 473 cleanupSoupRequestOperation(handle.get()); 474 return; 475 } 476 477 client->didFinishLoading(handle.get(), 0); 471 // didReceiveData above might have canceled this operation. If not, inform the client we've finished loading. 472 if (!d->m_cancelled && client) 473 client->didFinishLoading(handle.get(), 0); 474 475 cleanupSoupRequestOperation(handle.get()); 478 476 return; 479 477 }
Note: See TracChangeset
for help on using the changeset viewer.