diff --git a/Source/NSCharacterSet.m b/Source/NSCharacterSet.m index ff273dd1c..6313c97d0 100644 --- a/Source/NSCharacterSet.m +++ b/Source/NSCharacterSet.m @@ -94,7 +94,7 @@ static NSLock* cache_lock = nil; set = [self characterSetWithBitmapRepresentation: [NSData dataWithContentsOfFile: path]]; - cache_set[number] = set; + cache_set[number] = [set retain]; NS_HANDLER [cache_lock unlock]; [localException raise];