fixed memory leak in double tap gesture

fixed some compiler warnings
removed dead and useless code
This commit is contained in:
techdragon.nguyen@gmail.com
2011-10-08 00:56:07 +00:00
parent 9f09bbeec3
commit fbe2e44814
14 changed files with 53 additions and 51 deletions

View File

@@ -225,6 +225,7 @@ void DestroyGame(void)
[menuKeyRecognizer release];
[selectKeyRecognizer release];
[doubleTapRecognizer release];
[singleTapRecognizer release];
}
@@ -282,7 +283,7 @@ void DestroyGame(void)
//The EAGL view is stored in the nib file. When it's unarchived it's sent -initWithCoder:
- (id)initWithCoder:(NSCoder*)coder
{
if ((self = [super initWithCoder:coder]))
if (( self = [super initWithCoder:coder] ))
{
self = [self initialize];
}