| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
The command line tool "leaks" is telling me that I have an 80 byte leak of
type NSCFString everytime I execute the following method:
- (void)GLASS:(NSString *)parameterString { [aSurface setGlass:[NSString stringWithFormat: @"GLASS %@", parameterString]]; [aSurface setSurfaceNumber:surfaceNumber]; surfaceNumber++; [surfaceArray addObject:aSurface]; aSurface = [[ACSurface alloc]init];
}
Should I be using the following instead?
[aSurface setGlass:[[NSString alloc] initWithFormat: @"GLASS %@", parameterString]];
--Andy
_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
| References: | |
| >String memory leak (From: Bruce Truax <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.