Fix crash in Update Dialog on Mac if update installation fails due to use of uninitialized string variable.

This commit is contained in:
Robert Knight 2011-08-24 11:02:26 +01:00
parent a42e9475b5
commit 121b1c9126

View file

@ -33,10 +33,11 @@ class UpdateDialogPrivate
} }
- (void) reportUpdateError: (id)arg - (void) reportUpdateError: (id)arg
{ {
NSMutableString* message; NSMutableString* message = [[NSMutableString alloc] init];
[message appendString:@"There was a problem installing the update: "]; [message appendString:@"There was a problem installing the update: "];
[message appendString:arg]; [message appendString:arg];
[dialog->progressLabel setTitleWithMnemonic: message]; [dialog->progressLabel setTitleWithMnemonic: message];
[message release];
} }
- (void) reportUpdateProgress: (id)arg - (void) reportUpdateProgress: (id)arg
{ {