From a8d599dc00c3ba0bda2db22b9ad4211558d256bb Mon Sep 17 00:00:00 2001 From: "qsr@chromium.org" Date: Thu, 10 Nov 2011 16:28:20 +0000 Subject: Correct leak. Uploaders were never released. Review URL: http://breakpad.appspot.com/326001 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@882 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/ios/Breakpad.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/ios') 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]; } -- cgit v1.2.1