I have this bit of code:
CFDictionaryRef lDictionary = AACreateDictionaryForFile(path);
if (lDictionary) {
printf("retct before: %ld\n", CFGetRetainCount(lDictionary));
CFMakeCollectable(lDictionary);
printf("retct after: %ld\n", CFGetRetainCount(lDictionary));
return TRUE;
} else {
return FALSE;
}
Surprisingly, after the the code is run the console shows the following output:
retct before: 1
retct after: 2147483647
I would have expected:
retct before: 1
retct after: 0
Am I doing something wrong? Do I have incorrect expectations?