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