Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #1 from wilhelmbot/fix/dispatch-release

Removes dispatch_release when iOS >= 6 || OSX >= 1080
  • Loading branch information...
commit 86afec407bb58ed39a447a4ebf750044fce3d1b7 2 parents 2df10b1 + 597c209
@rodowi rodowi authored
View
2  MagicalRecord/Core/MagicalRecord+Actions.m
@@ -26,7 +26,7 @@ void reset_action_queue(void)
{
if (background_action_queue != NULL)
{
- // dispatch_release(background_action_queue);
+ MRDispatchQueueRelease(background_action_queue);
background_action_queue = NULL;
}
}
View
13 MagicalRecord/CoreData+MagicalRecord.h
@@ -45,3 +45,16 @@
#import "NSEntityDescription+MagicalDataImport.h"
#endif
+
+// @see https://github.com/ccgus/fmdb/commit/aef763eeb64e6fa654e7d121f1df4c16a98d9f4f
+#define MRDispatchQueueRelease(q) (dispatch_release(q))
+
+#if TARGET_OS_IPHONE
+ #if __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000
+ #define MRDispatchQueueRelease(q)
+ #endif
+#else
+ #if MAC_OS_X_VERSION_MIN_REQUIRED >= 1080
+ #define MRDispatchQueueRelease(q)
+ #endif
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.