On 12/7/13 3:35 PM, Ken Thomases wrote:
Can anyone tell me if the latter use of CFArraySortValues() is correct?
It is. Your analysis is correct.
It doesn't feel right to cast an int option to (void *) but the
documentation simply doesn't say it will pass on a dereferenced value.
The docs f
On Dec 7, 2013, at 7:49 AM, Markus Spoettl wrote:
> This was the invocation:
>
> int context = kCFCompareCaseInsensitive;
> CFArraySortValues(keyArray,
> CFRangeMake(0, count),
> (CFComparatorFunction)CFStringCompare, &context);
>
> After reading through CFArray
I recently discovered a strange memory leak in a 3rd-party component I use. A
call to CFArraySortValues() sometimes produced a leak, sometimes it didn't.
This was the invocation:
int context = kCFCompareCaseInsensitive;
CFArraySortValues(keyArray,
CFRangeMake(0, count),