diff --git a/SWIG/Lib/ruby/rubyvoid.swg b/SWIG/Lib/ruby/rubyvoid.swg index 678d2d8b3..7cbf75664 100644 --- a/SWIG/Lib/ruby/rubyvoid.swg +++ b/SWIG/Lib/ruby/rubyvoid.swg @@ -5,7 +5,7 @@ /* in */ %typemap(in) void * - "SWIG_ConvertPtr($input, (void **) &$1, 0, 1);"; + "SWIG_ConvertPtr($input, (void **) &$1, 0, SWIG_POINTER_EXCEPTION|$disown);"; /* out */