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:
parent
60b5f72384
commit
57fdbd439f
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue