diff options
author | nyamatongwe <devnull@localhost> | 2011-07-11 15:40:24 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-07-11 15:40:24 +1000 |
commit | 34c751df2e9db01f8209510256831ec14dc6fd9f (patch) | |
tree | 7de2f8d024456d49d76ad3ec7c65f41fdacaec0f /cocoa/QuartzTextStyleAttribute.h | |
parent | 15c3e1203d85d128a0432a35a5674763e1cac7b7 (diff) | |
download | scintilla-mirror-34c751df2e9db01f8209510256831ec14dc6fd9f.tar.gz |
Fix memory leaks for font and color objects.
Diffstat (limited to 'cocoa/QuartzTextStyleAttribute.h')
-rw-r--r-- | cocoa/QuartzTextStyleAttribute.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cocoa/QuartzTextStyleAttribute.h b/cocoa/QuartzTextStyleAttribute.h index ecea73b91..33c49281c 100644 --- a/cocoa/QuartzTextStyleAttribute.h +++ b/cocoa/QuartzTextStyleAttribute.h @@ -65,6 +65,7 @@ public: fontid = ::CTFontCreateWithName((CFStringRef)@"Monaco", size, NULL); } + CFRelease(fontName); } CTFontRef getFontID() |