Initialize latestContacts to empty dict (#1207)

Seeing intermittent segfaults on [latestContacts allKeys].
This could be because latestContacts is initialized async.

//FREEBIE
pull/1/head
Michael Kirk 8 years ago committed by GitHub
parent 2565801c39
commit 78a5355b04

@ -20,6 +20,7 @@ typedef BOOL (^ContactSearchBlock)(id, NSUInteger, BOOL *);
if (self) {
life = [TOCCancelTokenSource new];
observableContactsController = [ObservableValueController observableValueControllerWithInitialValue:nil];
latestContactsById = @{};
}
return self;
}

Loading…
Cancel
Save