diff options
author | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-11-10 16:28:20 +0000 |
---|---|---|
committer | qsr@chromium.org <qsr@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2011-11-10 16:28:20 +0000 |
commit | a8d599dc00c3ba0bda2db22b9ad4211558d256bb (patch) | |
tree | a1a3fbf0d3967a34a99403b5d4644afb508d381a /src/client/ios | |
parent | Fix problem with not NULL terminating mapping name. (diff) | |
download | breakpad-a8d599dc00c3ba0bda2db22b9ad4211558d256bb.tar.xz |
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
Diffstat (limited to 'src/client/ios')
-rw-r--r-- | src/client/ios/Breakpad.mm | 4 |
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]; } |