Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Classes/NSString+MD5Addition.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ - (NSString *) stringFromMD5{
[outputString appendFormat:@"%02x",outputBuffer[count]];
}

return [outputString autorelease];
return outputString;
}

@end
4 changes: 4 additions & 0 deletions UIDeviceAddition.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,12 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = NO;
GCC_DYNAMIC_NO_PIC = NO;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIDeviceAddition/UIDeviceAddition-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "UIDeviceAddition/UIDeviceAddition-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand All @@ -272,9 +274,11 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ENABLE_OBJC_ARC = YES;
COPY_PHASE_STRIP = YES;
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "UIDeviceAddition/UIDeviceAddition-Prefix.pch";
GCC_VERSION = com.apple.compilers.llvm.clang.1_0;
INFOPLIST_FILE = "UIDeviceAddition/UIDeviceAddition-Info.plist";
IPHONEOS_DEPLOYMENT_TARGET = 4.0;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down
7 changes: 0 additions & 7 deletions UIDeviceAddition/UIDeviceAdditionAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,4 @@ - (void)applicationWillTerminate:(UIApplication *)application
*/
}

- (void)dealloc
{
[_window release];
[_viewController release];
[super dealloc];
}

@end
7 changes: 0 additions & 7 deletions UIDeviceAddition/UIDeviceAdditionViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@

@implementation UIDeviceAdditionViewController

- (void)dealloc
{
[super dealloc];
}

- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
Expand All @@ -38,7 +33,6 @@ - (void)viewDidLoad{
[[UIDevice currentDevice] uniqueDeviceIdentifier]];

[self.view addSubview:label];
[label release];

label = [[UILabel alloc] initWithFrame:CGRectMake(10, 210, 300, 100)];
label.numberOfLines = 0;
Expand All @@ -47,7 +41,6 @@ - (void)viewDidLoad{
[[UIDevice currentDevice] uniqueGlobalDeviceIdentifier]];

[self.view addSubview:label];
[label release];
}


Expand Down
7 changes: 3 additions & 4 deletions UIDeviceAddition/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@

int main(int argc, char *argv[])
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
@autoreleasepool {
return UIApplicationMain(argc, argv, nil, nil);
}
}