Merge pull request #154 from mgradowski/main

fix SISEGV on Mojave
This commit is contained in:
Jos Dehaes 2021-11-16 21:27:40 +01:00 committed by GitHub
commit e2668c60f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;
}