aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-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;
}
//=============================================================================