diff options
author | marc_culler <marc.culler@gmail.com> | 2022-09-22 15:48:10 (GMT) |
---|---|---|
committer | marc_culler <marc.culler@gmail.com> | 2022-09-22 15:48:10 (GMT) |
commit | 191c62606576934688d5423df6ad9602da53cc40 (patch) | |
tree | 04c917688c22b4e3956c34a0da8c3136c300de45 /macosx/tkMacOSXColor.c | |
parent | f035cae8deffaaa28d7ddf094c39b1b75915e86e (diff) | |
download | tk-191c62606576934688d5423df6ad9602da53cc40.zip tk-191c62606576934688d5423df6ad9602da53cc40.tar.gz tk-191c62606576934688d5423df6ad9602da53cc40.tar.bz2 |
Apply patch [1fa3255c5e4] from Christopher Chavez: fix memory leak in TkMacOSXGetNSColor().
Diffstat (limited to 'macosx/tkMacOSXColor.c')
-rw-r--r-- | macosx/tkMacOSXColor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/macosx/tkMacOSXColor.c b/macosx/tkMacOSXColor.c index 39e443e..71dfe19 100644 --- a/macosx/tkMacOSXColor.c +++ b/macosx/tkMacOSXColor.c @@ -529,6 +529,7 @@ TkMacOSXGetNSColor( nsColor = [NSColor colorWithColorSpace:sRGB components:CGColorGetComponents(cgColor) count:CGColorGetNumberOfComponents(cgColor)]; + CGColorRelease(cgColor); return nsColor; } |