Skip to content

Commit

Permalink
Fixed crash when fetching more changes after doing an update.
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Groß committed Feb 8, 2010
1 parent 98e05ba commit aed50b9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/AppController.m
Expand Up @@ -31,6 +31,8 @@ - (BOOL) applicationShouldTerminateAfterLastWindowClosed:(NSApplication*)theAppl
}

- (void) dealloc {
[localChromium release];
[remoteChromium release];
[downloader release];
[log release];
[super dealloc];
Expand Down Expand Up @@ -102,10 +104,12 @@ - (void) doRefresh {
[progressStartup setHidden:NO];
[progressStartup startAnimation:nil];

localChromium = [self detectLocalChromium];
[localChromium release];
localChromium = [[self detectLocalChromium] retain];
[lblLocalVersion setStringValue:localChromium ? localChromium : @"Not installed!"];

remoteChromium = [self detectRemoteChromium];
[remoteChromium release];
remoteChromium = [[self detectRemoteChromium] retain];
[lblRemoteVersion setStringValue:remoteChromium ? remoteChromium : @"Unable to detect!"];

if (localChromium && remoteChromium) {
Expand Down

0 comments on commit aed50b9

Please sign in to comment.