From 965f58fa51d51f1d313a2935b13edd1fcbb32b22 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 3 Apr 2013 23:21:57 +0300 Subject: 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 --- vcl/coretext/salcoretextfontutils.cxx | 1 - 1 file changed, 1 deletion(-) (limited to 'vcl/coretext/salcoretextfontutils.cxx') 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) { -- cgit