mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-22 12:13:35 +00:00
Fix crash on app termination
This commit is contained in:
parent
72271a0c74
commit
4a9bb00e0d
@ -88,8 +88,7 @@ static NSOperationQueue* mainQueue;
|
|||||||
if (_managedObjectModel != nil) {
|
if (_managedObjectModel != nil) {
|
||||||
return _managedObjectModel;
|
return _managedObjectModel;
|
||||||
}
|
}
|
||||||
NSURL *modelURL = [[NSBundle mainBundle] URLForResource:@"Limelight_iOS" withExtension:@"momd"];
|
_managedObjectModel = [NSManagedObjectModel mergedModelFromBundles:nil];
|
||||||
_managedObjectModel = [[NSManagedObjectModel alloc] initWithContentsOfURL:modelURL];
|
|
||||||
return _managedObjectModel;
|
return _managedObjectModel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user