www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/@cgcontainer/getInternalPtrs.m

    function pList= getInternalPtrs(N)
%GETINTERNALPTRS list of internal pointers 
%
% pList= getInternalPtrs(ND)
%   An internal pointer is one which should be freed when the current 
%   object is freed.

% Copyright 2000-2008 The MathWorks, Inc. 

pList = [address(N) allchildren(N)];
pD= getdata(N);
if ~isempty(pD);
    pList= [pList pD getInternalPtrs(info(pD))];
end