Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed weak-memory mode in CBLCache to avoid crashes

For some reason the "ZeroingWeakMemory" option doesn't work; it might
only support GC, not ARC. Switched to "WeakMemory", which does work.
  • Loading branch information...
commit f9f823d4f5121a39bd294fdfb26b246805ba4840 1 parent 76e68f7
@snej snej authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Source/CBLCache.m
View
2  Source/CBLCache.m
@@ -35,7 +35,7 @@ - (instancetype) initWithRetainLimit: (NSUInteger)retainLimit {
// key/value pairs when a value is dealloced.
_map = [[NSMapTable alloc] initWithKeyOptions: NSPointerFunctionsStrongMemory |
NSPointerFunctionsObjectPersonality
- valueOptions: NSPointerFunctionsZeroingWeakMemory |
+ valueOptions: NSPointerFunctionsWeakMemory |
NSPointerFunctionsObjectPersonality
capacity: 100];
#else
Please sign in to comment.
Something went wrong with that request. Please try again.