* Source/AppController.m:
(init): Use [[NSA alloc] initWithContentsOfFile:] instead of [NSA arrayWith...]
(dealloc): New method
{
if (self = [super init])
{
- printers = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Printers" ofType:@"plist"]];
+ printers = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Printers" ofType:@"plist"]];
[NSThread detachNewThreadSelector:@selector(versionCheck:) toTarget:self withObject:self];
}
return self;
}
+/**
+ * Dealloc
+ */
+- (void)dealloc
+{
+ [printers release];
+ [super dealloc];
+}
+
/**
* Checks and sees if the current version is the most up-to-date one
*/