From: Jay Freeman (saurik) Date: Fri, 3 Jun 2011 02:14:25 +0000 (+0000) Subject: Special case __NSGenericDeallocHandler. X-Git-Tag: v0.9.450^0 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/aaa4a269e00843e8a21ef26d09604d4e357dfb69?ds=inline Special case __NSGenericDeallocHandler. --- diff --git a/ObjectiveC/Library.mm b/ObjectiveC/Library.mm index 2cb81b7..2cef380 100644 --- a/ObjectiveC/Library.mm +++ b/ObjectiveC/Library.mm @@ -252,6 +252,7 @@ static JSClassRef ObjectiveC_Images_; #ifdef __APPLE__ static Class NSCFBoolean_; static Class NSCFType_; +static Class NSGenericDeallocHandler_; static Class NSMessageBuilder_; static Class NSZombie_; #else @@ -419,7 +420,7 @@ NSString *CYCastNSCYON(id value) { else if (_class == NSZombie_) string = [NSString stringWithFormat:@"<_NSZombie_: %p>", value]; // XXX: frowny /in/ the pants - else if (value == NSMessageBuilder_ || value == Object_) + else if (value == NSGenericDeallocHandler_ || value == NSMessageBuilder_ || value == Object_) string = nil; #endif else @@ -2386,6 +2387,7 @@ void CYObjectiveC_Initialize() { /*XXX*/ JSContextRef context(NULL); CYPoolTry { #ifdef __APPLE__ NSCFBoolean_ = objc_getClass("NSCFBoolean"); NSCFType_ = objc_getClass("NSCFType"); + NSGenericDeallocHandler_ = objc_getClass("__NSGenericDeallocHandler"); NSMessageBuilder_ = objc_getClass("NSMessageBuilder"); NSZombie_ = objc_getClass("_NSZombie_"); #else