1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-01 03:10:06 +00:00

Fixed a potential access after free bug when creating typefaces from user data os macOS

This commit is contained in:
hogliux 2016-11-24 10:55:20 +00:00
parent 60b5f72384
commit 57fdbd439f

View file

@ -545,7 +545,7 @@ public:
ascent (0.0f),
unitsToHeightScaleFactor (0.0f)
{
CFDataRef cfData = CFDataCreateWithBytesNoCopy (kCFAllocatorDefault, (const UInt8*) data, (CFIndex) dataSize, kCFAllocatorNull);
CFDataRef cfData = CFDataCreate (kCFAllocatorDefault, (const UInt8*) data, (CFIndex) dataSize);
CGDataProviderRef provider = CGDataProviderCreateWithCFData (cfData);
CFRelease (cfData);