Permalink
Browse files

fixed memory leaks

  • Loading branch information...
1 parent d24a094 commit 667d6e1e757c03e3ba86c8f70ed0a2a183076b83 @ettore committed Jan 5, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 clcg_addressbook_utils.m
View
@@ -59,6 +59,7 @@ void clcg_addressbook_load_contacts(CLCGABCallback callback)
ab = ABAddressBookCreateWithOptions(NULL,&error);
if (error) {
callback(nil, NO, (NSError*)error);
+ CFRelease(ab);
} else {
ABAddressBookRequestAccessWithCompletion(ab, [[^(bool granted, CFErrorRef err) {
// the callback can occur in the background, but the address book must

0 comments on commit 667d6e1

Please sign in to comment.