Without these functions, it was impossible to use these classes without leaking memory. Even with these functions, the memory is released only when these functions are explicitly called, as old-style Matlab classes have no notion of a destructor. Fixes #252.
8 lines
156 B
Matlab
8 lines
156 B
Matlab
function clear(s)
|
|
% CLEAR Delete the C++ Sim1D object.
|
|
% clear(s)
|
|
% :param s:
|
|
% Instance of class :mat:func:`Stack`
|
|
%
|
|
|
|
stack_methods(s.stack_id, 110);
|