From 57af81b3dcef12592d8ee87e6fddd651b943da67 Mon Sep 17 00:00:00 2001 From: andym Date: Sun, 30 Dec 2007 14:51:17 +0000 Subject: [PATCH] Fixed SUStatusChecker--it was broken because I had made SUUpdater a true singleton, so subclasses couldn't even get allocated properly. --- SUUpdater.m | 1 + 1 file changed, 1 insertion(+) diff --git a/SUUpdater.m b/SUUpdater.m index adbbe14d..6eabcbb5 100644 --- a/SUUpdater.m +++ b/SUUpdater.m @@ -33,6 +33,7 @@ // SUUpdater's a singleton now! And I'm enforcing it! + (id)allocWithZone:(NSZone *)zone { + if ([self class] != [SUUpdater class]) { return [super allocWithZone:zone]; } static SUUpdater *sharedUpdater = nil; if (sharedUpdater == nil) sharedUpdater = [super allocWithZone:zone];