Correct CFRunArrayItem dictionary initialization.

This commit is contained in:
ckegel 2023-10-19 21:53:19 -04:00
parent 80a41ef752
commit 464b2b4e47

View File

@ -83,7 +83,7 @@ static __CFRunArrayItem * _CFRunArrayItemInit(CFRange range, CFDictionaryRef dic
{
__CFRunArrayItem *obj = (__CFRunArrayItem *)malloc(sizeof(__CFRunArrayItem));
obj->_range = range;
obj->_dictionary = CFRetain(dict);
obj->_dictionary = CFDictionaryCreateCopy(kCFAllocatorDefault, dict);
return obj;
}