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; }