[CNContact] fix crash memory issue

This commit is contained in:
Brieuc Viel 2017-12-05 15:20:12 +01:00
parent 72b0d22deb
commit 8b31a23379
3 changed files with 4 additions and 5 deletions

View file

@ -129,7 +129,8 @@
}
- (void) fetchContactsInBackGroundThread{
[_addressBookMap removeAllObjects];
_addressBookMap = [NSMutableDictionary dictionary];
CNEntityType entityType = CNEntityTypeContacts;
[store requestAccessForEntityType:entityType completionHandler:^(BOOL granted, NSError *_Nullable error) {
BOOL success = FALSE;
@ -204,9 +205,7 @@
}else{
// Dosomte
}
}
}
if (normalizedPhone)
ms_free(normalizedPhone);

@ -1 +1 @@
Subproject commit 20efb4ad41357daf700fa393dbcae9fdb3ab2730
Subproject commit 2b3d4ae3cfaf82e286fe16d8ae0bac57d7abf1a7

@ -1 +1 @@
Subproject commit 3f94be991d4d7cf1f2e869e457c1a95eb9d518a5
Subproject commit 16ee1217a9725bcde21ee5cd375da769b0177e38