fix SISEGV on Mojave

This commit is contained in:
Mikołaj Gradowski 2021-11-16 20:40:49 +01:00
parent 557bcf56c9
commit 6ab49d2803

View file

@ -37,7 +37,8 @@ CFDictionaryRef matching(int page, int usage) {
nums[1] = CFNumberCreate(0, kCFNumberSInt32Type, &usage);
CFDictionaryRef dict = CFDictionaryCreate(0, (const void **)keys, (const void **)nums, 2, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFRelease(keys);
CFRelease(keys[0]);
CFRelease(keys[1]);
return dict;
}