Ben Copsey

ASIWebPageRequests retain their parent

Tweaks to Mac sample app layout
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 #import "ASIDataCompressor.h" 24 #import "ASIDataCompressor.h"
25 25
26 // Automatically set on build 26 // Automatically set on build
27 -NSString *ASIHTTPRequestVersion = @"v1.7-99 2010-10-03"; 27 +NSString *ASIHTTPRequestVersion = @"v1.7-100 2010-10-03";
28 28
29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain"; 29 NSString* const NetworkRequestErrorDomain = @"ASIHTTPRequestErrorDomain";
30 30
@@ -59,6 +59,6 @@ typedef enum _ASIWebContentType { @@ -59,6 +59,6 @@ typedef enum _ASIWebContentType {
59 - (NSString *)cachePathForRequest:(ASIWebPageRequest *)theRequest; 59 - (NSString *)cachePathForRequest:(ASIWebPageRequest *)theRequest;
60 60
61 61
62 -@property (assign, nonatomic) ASIWebPageRequest *parentRequest; 62 +@property (retain, nonatomic) ASIWebPageRequest *parentRequest;
63 @property (assign, nonatomic) BOOL replaceURLsWithDataURLs; 63 @property (assign, nonatomic) BOOL replaceURLsWithDataURLs;
64 @end 64 @end
@@ -39,6 +39,12 @@ static NSMutableArray *requestsUsingXMLParser = nil; @@ -39,6 +39,12 @@ static NSMutableArray *requestsUsingXMLParser = nil;
39 } 39 }
40 } 40 }
41 41
  42 +- (void)dealloc
  43 +{
  44 + [parentRequest release];
  45 + [super dealloc];
  46 +}
  47 +
42 - (void)markAsFinished 48 - (void)markAsFinished
43 { 49 {
44 } 50 }
This diff is collapsed. Click to expand it.