From 80017f7d71b28624f77302178cc877dda2b9aae0 Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Sat, 15 Apr 2017 19:13:21 +0200 Subject: [PATCH] (OSX) Try to free allocation at the end of get_selector --- gfx/drivers_context/cocoa_gl_ctx.m | 1 + 1 file changed, 1 insertion(+) diff --git a/gfx/drivers_context/cocoa_gl_ctx.m b/gfx/drivers_context/cocoa_gl_ctx.m index 081aee1c06..9c75e88d08 100644 --- a/gfx/drivers_context/cocoa_gl_ctx.m +++ b/gfx/drivers_context/cocoa_gl_ctx.m @@ -155,6 +155,7 @@ static float get_from_selector(Class obj_class, id obj_id, SEL selector, CGFloat [invocation setTarget:obj_id]; [invocation invoke]; [invocation getReturnValue:ret]; + [invocation release]; return *ret; }