aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-08-16 20:20:50 +0000
committerladderbreaker <ladderbreaker@4c0a9323-5329-0410-9bdc-e9ce6186880e>2007-08-16 20:20:50 +0000
commit8597ff9fe1718db13afc5bccd2cffdb430612c51 (patch)
treee788c4256ef5d0a0a4d14382248cdd0c1a6c2adc
parentIssue 197: reviewed by Waylonis (diff)
downloadbreakpad-8597ff9fe1718db13afc5bccd2cffdb430612c51.tar.xz
Issue 197: reviewed by Waylonis
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@201 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r--src/common/mac/HTTPMultipartUpload.m9
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;
}
//=============================================================================