(iOS) Fix 'release is unavailable; not available in automatic reference

counting mode'
This commit is contained in:
twinaphex 2017-04-15 20:20:08 +02:00
parent 66f1c42fcc
commit 4b419ce125

View File

@ -161,7 +161,10 @@ static float get_from_selector(Class obj_class, id obj_id, SEL selector, CGFloat
[invocation setTarget:obj_id];
[invocation invoke];
[invocation getReturnValue:ret];
#if __has_feature(objc_arc)
#else
[invocation release];
#endif
return *ret;
}