diff --git a/DeviceInfo.m b/DeviceInfo.m index 5cd2fc33..88fa9ac9 100644 --- a/DeviceInfo.m +++ b/DeviceInfo.m @@ -64,7 +64,7 @@ -(NSString*) phoneCarrier { SEL subscriberCellularProvider = NSSelectorFromString(@"subscriberCellularProvider"); SEL carrierName = NSSelectorFromString(@"carrierName"); if (CTTelephonyNetworkInfo && subscriberCellularProvider && carrierName) { - networkInfo = [[NSClassFromString(@"CTTelephonyNetworkInfo") alloc] init]; + networkInfo = SAFE_ARC_RETAIN([[NSClassFromString(@"CTTelephonyNetworkInfo") alloc] init]); id carrier = nil; id (*imp1)(id, SEL) = (id (*)(id, SEL))[networkInfo methodForSelector:subscriberCellularProvider]; if (imp1) {