Reviewed by rjw.
* WebView.subproj/WebBaseResourceHandleDelegate.m:
(-[WebBaseResourceHandleDelegate resourceData]): retain and autorelease resourceData since releaseResources (which releases resourceData) may be called before the caller of this method has an opporuntity to retain the returned data
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8989
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-03-31 Chris Blumenberg <cblu@apple.com>
+
+ Fixed: <rdar://problem/4070729> REGRESSION (125-311, Panther-only?): Safari crashes while reloading "My eBay" page
+
+ Reviewed by rjw.
+
+ * WebView.subproj/WebBaseResourceHandleDelegate.m:
+ (-[WebBaseResourceHandleDelegate resourceData]): retain and autorelease resourceData since releaseResources (which releases resourceData) may be called before the caller of this method has an opporuntity to retain the returned data
+
=== Safari-412 ===
=== Safari-411 ===
return [resource data];
}
if (resourceData != nil) {
- return resourceData;
+ // Retain and autorelease resourceData since releaseResources (which releases resourceData) may be called
+ // before the caller of this method has an opporuntity to retain the returned data (4070729).
+ return [[resourceData retain] autorelease];
}
if (NSURLConnectionSupportsBufferedData) {
return [connection _bufferedData];
return [resource data];
}
if (resourceData != nil) {
- return resourceData;
+ // Retain and autorelease resourceData since releaseResources (which releases resourceData) may be called
+ // before the caller of this method has an opporuntity to retain the returned data (4070729).
+ return [[resourceData retain] autorelease];
}
if (NSURLConnectionSupportsBufferedData) {
return [connection _bufferedData];