Use retainable property for SSID

This commit is contained in:
Guillaume BIENKOWSKI 2014-11-26 15:46:27 +01:00
parent 448020b321
commit 77af614732
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ typedef struct _LinphoneManagerSounds {
@property (readonly) NetworkType network;
@property (readonly) const char* frontCamId;
@property (readonly) const char* backCamId;
@property (assign) NSString* SSID;
@property (retain, nonatomic) NSString* SSID;
@property (readonly) sqlite3* database;
@property (nonatomic, retain) NSData *pushNotificationToken;
@property (readonly) LinphoneManagerSounds sounds;

View file

@ -1026,7 +1026,7 @@ static void networkReachabilityNotification(CFNotificationCenterRef center, void
NSString *newSSID = [LinphoneManager getCurrentWifiSSID];
if ([newSSID compare:mgr.SSID] == NSOrderedSame) return;
mgr.SSID = [newSSID retain];
mgr.SSID = newSSID;
if (SCNetworkReachabilityGetFlags([mgr getProxyReachability], &flags)) {
networkReachabilityCallBack([mgr getProxyReachability],flags,nil);