aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/client/ios/Breakpad.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/ios/Breakpad.mm b/src/client/ios/Breakpad.mm
index f859123b..d2f5652f 100644
--- a/src/client/ios/Breakpad.mm
+++ b/src/client/ios/Breakpad.mm
@@ -418,8 +418,8 @@ NSString *Breakpad::NextCrashReportToUpload() {
void Breakpad::UploadNextReport() {
NSString* configFile = NextCrashReportToUpload();
if (configFile) {
- Uploader* uploader = [[Uploader alloc]
- initWithConfigFile:[configFile UTF8String]];
+ Uploader* uploader = [[[Uploader alloc]
+ initWithConfigFile:[configFile UTF8String]] autorelease];
if (uploader)
[uploader report];
}