Browse Source

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

tags/2021-05-28
hogliux 9 years ago
parent
commit
57fdbd439f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/juce_graphics/native/juce_mac_Fonts.mm

+ 1
- 1
modules/juce_graphics/native/juce_mac_Fonts.mm 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);


Loading…
Cancel
Save