diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-04-03 23:21:57 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-04-03 23:38:14 +0300 |
commit | 965f58fa51d51f1d313a2935b13edd1fcbb32b22 (patch) | |
tree | 662b8bae3b8994741c7b371e8b9b3ae7688ec9e6 /vcl | |
parent | 5f18619f937bf3587b57ed88dbefc03cebb9dd17 (diff) |
Fix heap corruption
As its name says, CFDictionaryGetValue() follows "The Get Rule",
i.e. you don't have ownership of the object returned, so it shouldn't
be released.
Change-Id: Ie605ac21754ed479911d8f4ceb00744a6df600aa
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/coretext/salcoretextfontutils.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/vcl/coretext/salcoretextfontutils.cxx b/vcl/coretext/salcoretextfontutils.cxx index 3f64d3b9d5cb..0c1342f5cecf 100644 --- a/vcl/coretext/salcoretextfontutils.cxx +++ b/vcl/coretext/salcoretextfontutils.cxx @@ -76,7 +76,6 @@ static bool GetDevFontAttributes( CTFontDescriptorRef font_descriptor, ImplDevFo CFDictionaryRef traits = (CFDictionaryRef)CTFontDescriptorCopyAttribute(font_descriptor, kCTFontTraitsAttribute); CFNumberRef symbolics = (CFNumberRef)CFDictionaryGetValue(traits, kCTFontSymbolicTrait); CFNumberGetValue(symbolics, kCFNumberIntType, &value); - CFRelease(symbolics); if(value & kCTFontMonoSpaceTrait) { |