Permalink
Browse files

Merge pull request #87 from InfiniteLoopDK/master

Fix for crash on Mac when submitting report
  • Loading branch information...
2 parents 3c4a0b1 + a6ec435 commit cc626c12b9b2241ef16605c52d7925c6a41c0e9e @TheRealKerni TheRealKerni committed Mar 8, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 client/Mac/BWQuincyUI.m
@@ -136,6 +136,8 @@ - (void) _sendReportAfterDelay {
NSString *notes = [NSString stringWithFormat:@"Comments:\n%@\n\nConsole:\n%@", [descriptionTextField stringValue], _consoleContent];
[_quincyManager sendReportCrash:_crashLogContent description:notes];
+ [_crashLogContent release];
+ _crashLogContent = nil;
}
- (IBAction) submitReport:(id)sender {
@@ -162,7 +164,7 @@ - (void) askCrashReportDetails {
NSString *crashLogs = [NSString stringWithContentsOfFile:_crashFile encoding:NSUTF8StringEncoding error:&error];
NSString *lastCrash = [[crashLogs componentsSeparatedByString: @"**********\n\n"] lastObject];
- _crashLogContent = lastCrash;
+ _crashLogContent = [lastCrash retain];
// get the console log
NSEnumerator *theEnum = [[[NSString stringWithContentsOfFile:@"/private/var/log/system.log" encoding:NSUTF8StringEncoding error:&error] componentsSeparatedByString: @"\n"] objectEnumerator];

0 comments on commit cc626c1

Please sign in to comment.