From 9a53531d3bf68646e3ac36330be2dd15bdc1831a Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Wed, 14 Nov 2012 20:45:29 +0900 Subject: [PATCH] Fix a braino in Object's -init. I'd forgotten AutoreleasePool doesn't like receiving -retain when I did the retainCount change, and thus Object's -init was a little too naive. --- ruamoko/lib/Object.r | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruamoko/lib/Object.r b/ruamoko/lib/Object.r index 14cd9a414..ca5d3ada8 100644 --- a/ruamoko/lib/Object.r +++ b/ruamoko/lib/Object.r @@ -152,7 +152,7 @@ BOOL (id object) object_is_meta_class = #0; - (id) init { - [self retain]; + obj_increment_retaincount (self); return self; }