Skip to content

Commit

Permalink
Quick fix for crash when submitting report
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteLoopDK committed Mar 8, 2012
1 parent 171c947 commit a6ec435
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/Mac/BWQuincyUI.m
Expand Up @@ -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 {
Expand All @@ -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];
Expand Down

0 comments on commit a6ec435

Please sign in to comment.