forked from organicmaps/organicmaps
[iPhone] Fixed crash with autoreleased static variable
This commit is contained in:
parent
58e86996d2
commit
99813edd51
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ NSString * GetEncryptedMac()
|
|||
[val release];
|
||||
}
|
||||
|
||||
static NSString * macStr = GetEncryptedMac();
|
||||
NSString * macStr = GetEncryptedMac();
|
||||
if (macStr)
|
||||
[request addValue:macStr forHTTPHeaderField:@"User-Agent"];
|
||||
return request;
|
||||
|
|
Loading…
Add table
Reference in a new issue