fix for bad access / zombie calls #133

Merged
merged 1 commit into from Apr 20, 2012
@@ -35,7 +35,7 @@
#define SINGLETON \
+ (id)sharedInstance { \
- static id state; \
+ static id state = nil; \
if (!state) state = [[self alloc] init]; \
return state; \
}