Ben Copsey

Merge pull request #257 from aidansteele/master

Format string fixes and memory leak fixes.
... ... @@ -189,7 +189,7 @@
// Make sure nothing went wrong
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
if (err) {
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at &@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Compression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
}
[compressor closeStream];
return NO;
... ...
... ... @@ -186,7 +186,7 @@
// Make sure nothing went wrong
if ([inputStream streamStatus] == NSStreamEventErrorOccurred) {
if (err) {
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of %@ failed because we were unable to write to the destination data file at &@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
*err = [NSError errorWithDomain:NetworkRequestErrorDomain code:ASICompressionError userInfo:[NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Decompression of %@ failed because we were unable to write to the destination data file at %@",sourcePath,destinationPath],NSLocalizedDescriptionKey,[outputStream streamError],NSUnderlyingErrorKey,nil]];
}
[decompressor closeStream];
return NO;
... ...
... ... @@ -22,6 +22,9 @@
-(void) dealloc {
[name release];
[cdnURL release];
[referrerACL release];
[useragentACL release];
[super dealloc];
}
... ...
... ... @@ -29,4 +29,13 @@
@synthesize creationDate;
@synthesize ownerID;
@synthesize ownerName;
- (void)dealloc
{
[name release];
[creationDate release];
[ownerID release];
[ownerName release];
}
@end
... ...
... ... @@ -115,6 +115,12 @@
}
}
- (void)dealloc
{
[popoverController release];
[rootPopoverButtonItem release];
[super dealloc];
}
@synthesize splitViewController;
@synthesize popoverController;
... ...