I've been building and doing all sorts of stuff here using the xcode. It never complained about "leak problems". It has just started since I tried to insert ShareKit.
So.. I removed all traces of ShareKit and 11 entries of "Potential leak of an object" appeared.
Here is one example which is happening with a textView:
file.h
#import <UIKit/UIKit.h>
#import "iAd/iAd.h"
#import "Oracao.h"
#import <QuartzCore/QuartzCore.h>
@interface DetalhesOracaoViewController : UIViewController{
Cclass *cclass;
}
@property (nonatomic, retain) Cclass *cclass;
@property (nonatomic, retain) IBOutlet UITextView *tWeekDay;
@end
file.m
...
@synthesize tWeekDay;
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.tWeekDay.text = [NSString stringWithFormat:@"%d° day - %@", cclass.dia, cclass.dia_semana];
}
#pragma mark dealloc
-(void)dealloc {
[tWeekDay release];
[super dealloc];
}
Any ideas of what could be done? Thanks!
EDIT:
Here is another leak that I couldn't understand: