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
154 B
Matlab
8 lines
154 B
Matlab
function clear(x)
|
|
% CLEAR Delete the C++ XML_Node object.
|
|
% clear(x)
|
|
% :param x:
|
|
% Instance of class :mat:func:`XML_Node`
|
|
%
|
|
|
|
ctmethods(10, 1, x.id);
|