summaryrefslogtreecommitdiff
path: root/ext/ffi_c/MethodHandle.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ffi_c/MethodHandle.c')
-rw-r--r--ext/ffi_c/MethodHandle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/ffi_c/MethodHandle.c b/ext/ffi_c/MethodHandle.c
index bbf99a2..70efb72 100644
--- a/ext/ffi_c/MethodHandle.c
+++ b/ext/ffi_c/MethodHandle.c
@@ -228,9 +228,8 @@ custom_trampoline(int argc, VALUE* argv, VALUE self, Closure* handle)
{
FunctionType* fnInfo = (FunctionType *) handle->info;
VALUE rbReturnValue;
-
+
RB_GC_GUARD(rbReturnValue) = (*fnInfo->invoke)(argc, argv, handle->function, fnInfo);
- RB_GC_GUARD_PTR(argv);
RB_GC_GUARD(self);
return rbReturnValue;
@@ -357,4 +356,3 @@ rbffi_MethodHandle_Init(VALUE module)
#endif
}
-