comparison src/mex.cc @ 6018:bda649f500bd

[project @ 2006-10-02 17:23:18 by jwe]
author jwe
date Mon, 02 Oct 2006 17:23:19 +0000
parents 1ed991f0ed61
children a813714cb04b
comparison
equal deleted inserted replaced
6017:b124a912d28b 6018:bda649f500bd
2872 2872
2873 for (int i = 0; i < nargout; i++) 2873 for (int i = 0; i < nargout; i++)
2874 retval(i) = mxArray::as_octave_value (argout[i]); 2874 retval(i) = mxArray::as_octave_value (argout[i]);
2875 } 2875 }
2876 2876
2877 // Is it always safe to do this? Are users required to use one of
2878 // the mxCreateXYZ functions to create the values that are put in
2879 // the output array?
2880 for (int i = 0; i < nout; i++)
2881 delete argout[i];
2882
2877 // Clean up mex resources. 2883 // Clean up mex resources.
2878 unwind_protect::run_frame ("call_mex"); 2884 unwind_protect::run_frame ("call_mex");
2879 2885
2880 return retval; 2886 return retval;
2881 } 2887 }