[vlc-commits] macosx: Release CGColorRef properly
Marvin Scholz
git at videolan.org
Thu Nov 3 18:50:07 CET 2016
vlc | branch: master | Marvin Scholz <epirat07 at gmail.com> | Thu Nov 3 18:49:41 2016 +0100| [793c499fd6e13debc8c4b6f80dd2c8eb10676abe] | committer: Marvin Scholz
macosx: Release CGColorRef properly
ARC only handles Objective C objects so a CGColorRef needs to be
released explicitly.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=793c499fd6e13debc8c4b6f80dd2c8eb10676abe
---
modules/gui/macosx/VLCFSPanelController.m | 1 +
1 file changed, 1 insertion(+)
diff --git a/modules/gui/macosx/VLCFSPanelController.m b/modules/gui/macosx/VLCFSPanelController.m
index 60ec434..35f149e 100644
--- a/modules/gui/macosx/VLCFSPanelController.m
+++ b/modules/gui/macosx/VLCFSPanelController.m
@@ -400,6 +400,7 @@
[view.layer setBackgroundColor:color];
[view.layer setCornerRadius:8.0];
[view setAutoresizesSubviews:YES];
+ CGColorRelease(color);
/* Inject view in view hierarchy */
[self.window setContentView:view];
More information about the vlc-commits
mailing list