From 43781876cd516935f291b40398e5bd92ba82c066 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Mon, 27 Apr 2015 15:52:37 +0200 Subject: [PATCH] (CGL) Some buildfixes/cleanups --- gfx/drivers_context/cgl_ctx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/cgl_ctx.c b/gfx/drivers_context/cgl_ctx.c index 3f40ff4a69..71f2dcee35 100644 --- a/gfx/drivers_context/cgl_ctx.c +++ b/gfx/drivers_context/cgl_ctx.c @@ -153,8 +153,9 @@ static gfx_ctx_proc_t gfx_ctx_cgl_get_proc_address(const char *symbol_name) gfx_ctx_proc_t ret = (gfx_ctx_proc_t)CFBundleGetFunctionPointerForName( opengl_bundle_ref, function); - CFRelease(bundle_ref); + CFRelease(bundle_url); CFRelease(function); + CFRelease(opengl_bundle_ref); return ret; }