aboutsummaryrefslogtreecommitdiff
path: root/src/tools/mac/crash_report
diff options
context:
space:
mode:
authornealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-01-11 21:24:43 +0000
committernealsid <nealsid@4c0a9323-5329-0410-9bdc-e9ce6186880e>2010-01-11 21:24:43 +0000
commit2832dc011c9e59c70b60ae7c9242a871a348a53d (patch)
tree07fc65e35505d094bc1e69966bbc4ec686a89d3f /src/tools/mac/crash_report
parentINclude stackwalker_arm.{cc,h} in crash_report build (diff)
downloadbreakpad-2832dc011c9e59c70b60ae7c9242a871a348a53d.tar.xz
Patch from Kris Rambish to keep memory usage flat when processing a directory full of minidump files
A=krisr R=nealsid git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@478 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools/mac/crash_report')
-rw-r--r--src/tools/mac/crash_report/crash_report.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/mac/crash_report/crash_report.mm b/src/tools/mac/crash_report/crash_report.mm
index 22d2a18e..7fcb726f 100644
--- a/src/tools/mac/crash_report/crash_report.mm
+++ b/src/tools/mac/crash_report/crash_report.mm
@@ -319,6 +319,7 @@ static void Start(Options *options) {
[manager enumeratorAtPath:minidump_path];
NSString *current_file = nil;
while ((current_file = [enumerator nextObject])) {
+ NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
if ([[current_file pathExtension] isEqualTo:@"dmp"]) {
printf("Attempting to process report: %s\n",
[current_file cStringUsingEncoding:NSASCIIStringEncoding]);
@@ -326,6 +327,7 @@ static void Start(Options *options) {
[minidump_path stringByAppendingPathComponent:current_file];
ProcessSingleReport(options, full_path);
}
+ [pool release];
}
} else if (file_exists) {
ProcessSingleReport(options, minidump_path);