mirror of
https://github.com/darlinghq/darling-corefoundation.git
synced 2024-11-26 21:30:22 +00:00
Correct CFRunArrayItem
dictionary initialization.
This commit is contained in:
parent
80a41ef752
commit
464b2b4e47
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user