cocoaTouch/SingleTeamViewController.m
changeset 3316 52f0482b043f
parent 3315 4e2813713358
child 3323 091cf214bdd5
--- a/cocoaTouch/SingleTeamViewController.m	Tue Apr 06 21:54:46 2010 +0000
+++ b/cocoaTouch/SingleTeamViewController.m	Wed Apr 07 01:22:05 2010 +0000
@@ -60,6 +60,7 @@
         NSString *hatFile = [[NSString alloc] initWithFormat:@"%@/Data/Graphics/Hats/%@.png",[[NSBundle mainBundle] resourcePath],[hog objectForKey:@"hat"]];
 
         UIImage *image = [[UIImage alloc] initWithContentsOfFile: hatFile];
+        [hatFile release];
         CGRect firstSpriteArea = CGRectMake(0, 0, 32, 32);
         CGImageRef cgImgage = CGImageCreateWithImageInRect([image CGImage], firstSpriteArea);
         [image release];