]> git.saurik.com Git - cycript.git/commitdiff
I do not remember why this was so overly complex.
authorJay Freeman (saurik) <saurik@saurik.com>
Mon, 20 Jan 2014 13:54:18 +0000 (05:54 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Mon, 20 Jan 2014 13:56:10 +0000 (05:56 -0800)
ObjectiveC/Library.mm

index a31c9713f730a30f023f6238937892c0363c6fa5..882ecacc14aa02bf506a086d768bd3f652b81f62 100644 (file)
@@ -391,9 +391,7 @@ JSObjectRef Instance::Make(JSContextRef context, id object, Flags flags) {
 
 Instance::~Instance() {
     if ((flags_ & Transient) == 0)
-        // XXX: does this handle background threads correctly?
-        // XXX: this simply does not work on the console because I'm stupid
-        [GetValue() performSelector:@selector(release) withObject:nil afterDelay:0];
+        [GetValue() release];
 }
 
 struct Message_privateData :