[Sandbox Broker] Copy results array
Hopefully this heads off a crash elsewhere. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
dfb773e9cb
commit
ec393d186a
|
@ -163,6 +163,7 @@ static inline void dispatch_sync_reentrant(dispatch_queue_t queue, dispatch_bloc
|
|||
|
||||
NSError *error = nil;
|
||||
NSArray *results = [pc.viewContext executeFetchRequest:request error:&error];
|
||||
if(results) results = [results copy];
|
||||
|
||||
if(results && [results count] > 0) {
|
||||
for(SandboxToken *token in results) {
|
||||
|
|
Loading…
Reference in New Issue