/* The timer that update the interface */
NSTimer * interfaceTimer;
+ NSURLConnection * crashLogURLConnection;
+
AppleRemote * o_remote;
BOOL b_remote_button_hold; /* true as long as the user holds the left,right,plus or minus on the remote control */
}
if( nib_wizard_loaded )
[o_wizard release];
+
+ [crashLogURLConnection cancel];
+ [crashLogURLConnection release];
[o_embedded_list release];
[o_interaction_list release];
[req setHTTPBody:[postBody dataUsingEncoding:NSUTF8StringEncoding]];
/* Released from delegate */
- NSURLConnection *theConnection = [[NSURLConnection alloc] initWithRequest:req delegate:self];
+ crashLogURLConnection = [[NSURLConnection alloc] initWithRequest:req delegate:self];
}
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
NSRunInformationalAlertPanel(_NS("Crash Report successfully sent"),
_NS("Thanks for your report!"),
_NS("OK"), nil, nil, nil);
- [connection release];
+ [crashLogURLConnection release];
+ crashLogURLConnection = nil;
}
- (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
{
NSRunCriticalAlertPanel(_NS("Error when sending the Crash Report"), [error localizedDescription], @"OK", nil, nil);
- [connection release];
+ [crashLogURLConnection release];
+ crashLogURLConnection = nil;
}
- (NSString *)latestCrashLogPathPreviouslySeen:(BOOL)previouslySeen