Skip to content
Browse files

24112011

- Small internal fixes for memory usage and stability.
  • Loading branch information...
1 parent 9a348b6 commit 2a5bf84dfc79f350e082aab14ef16fa0ee0832de @s1g53gv s1g53gv committed Nov 24, 2011
View
9 Classes/KioskApp/Controllers/MenuViewController_Kiosk.m
@@ -95,18 +95,15 @@ - (void)viewDidLoad {
xmlUrl = [NSURL URLWithString:FPK_KIOSK_XML_URL];
[parser parseXMLFileAtURL:xmlUrl];
- [self.documentsList retain];
+ //[self.documentsList retain]; // EH?
self.documentsList = nil;
-
- NSMutableArray *anArray = [[NSMutableArray alloc]init];
// Try to parse the remote URL. If it fails, fallback to the local xml.
if([parser isDone]) {
self.documentsList = [parser parsedItems];
-
} else {
xmlUrl = [MF_BUNDLED_BUNDLE(@"FPKKioskBundle") URLForResource:FPK_KIOSK_XML_NAME withExtension:@"xml"];
@@ -118,11 +115,9 @@ - (void)viewDidLoad {
}
[parser release];
-
-
[self performSelector:@selector(buildInterface) withObject:nil afterDelay:0.5];
-
+
}
View
1 Classes/KioskApp/Controllers/XMLParser.m
@@ -64,6 +64,7 @@ - (void)parseXMLFileAtURL:(NSURL *)url {
[xmlParser parse]; // Start parsing.
[xmlParser release];
+
[pool release];
}
View
1 Classes/Reader/ThumbnailSlider/TVThumbnailScrollView.m
@@ -113,7 +113,6 @@ -(void)generateThumbnailOrSkip:(id)something {
[fileManager createFileAtPath:path contents:data attributes:nil];
-
CGImageRelease(image); // You are responsible for release the CGImageRef.
[self performSelectorOnMainThread:@selector(handleThumbDone:) withObject:img waitUntilDone:NO];

0 comments on commit 2a5bf84

Please sign in to comment.
Something went wrong with that request. Please try again.