mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 13:31:47 +00:00
Fix crash on app termination
This commit is contained in:
1 parent
72271a0c74
commit
4a9bb00e0d
1 file changed
+1
-2
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user