diff options
author | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-08-16 20:20:50 +0000 |
---|---|---|
committer | ladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2007-08-16 20:20:50 +0000 |
commit | 8597ff9fe1718db13afc5bccd2cffdb430612c51 (patch) | |
tree | e788c4256ef5d0a0a4d14382248cdd0c1a6c2adc /src/common | |
parent | Issue 197: reviewed by Waylonis (diff) | |
download | breakpad-8597ff9fe1718db13afc5bccd2cffdb430612c51.tar.xz |
Issue 197: reviewed by Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@201 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/mac/HTTPMultipartUpload.m | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/common/mac/HTTPMultipartUpload.m b/src/common/mac/HTTPMultipartUpload.m index d1289953..dd3612d8 100644 --- a/src/common/mac/HTTPMultipartUpload.m +++ b/src/common/mac/HTTPMultipartUpload.m @@ -185,9 +185,16 @@ [req setHTTPBody:postBody]; [req setHTTPMethod:@"POST"]; - return [NSURLConnection sendSynchronousRequest:req + [response_ release]; + response_ = nil; + + NSData *data = [NSURLConnection sendSynchronousRequest:req returningResponse:&response_ error:error]; + + [response_ retain]; + + return data; } //============================================================================= |