Permalink
Browse files

Merge pull request #257 from aidansteele/master

Format string fixes and memory leak fixes.
  • Loading branch information...
2 parents 29a1571 + 09a7001 commit 88a8c379ecfd7b0299f1e9d4810e5a4de17a6642 @pokeb committed Sep 17, 2011
View
2 Classes/ASIDataCompressor.m
@@ -189,7 +189,7 @@ + (BOOL)compressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destinati
// 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;
View
2 Classes/ASIDataDecompressor.m
@@ -186,7 +186,7 @@ + (BOOL)uncompressDataFromFile:(NSString *)sourcePath toFile:(NSString *)destina
// 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;
View
3 Classes/CloudFiles/ASICloudFilesContainer.m
@@ -22,6 +22,9 @@ + (id)container {
-(void) dealloc {
[name release];
+ [cdnURL release];
+ [referrerACL release];
+ [useragentACL release];
[super dealloc];
}
View
9 Classes/S3/ASIS3Bucket.m
@@ -29,4 +29,13 @@ - (NSString *)description
@synthesize creationDate;
@synthesize ownerID;
@synthesize ownerName;
+
+- (void)dealloc
+{
+ [name release];
+ [creationDate release];
+ [ownerID release];
+ [ownerName release];
+}
+
@end
View
6 iPhone Sample/RootViewController.m
@@ -115,6 +115,12 @@ - (void)splitViewController:(UISplitViewController *)svc popoverController: (UIP
}
}
+- (void)dealloc
+{
+ [popoverController release];
+ [rootPopoverButtonItem release];
+ [super dealloc];
+}
@synthesize splitViewController;
@synthesize popoverController;

0 comments on commit 88a8c37

Please sign in to comment.