www.gusucode.com > mbcdata 工具箱 matlab 源码程序 > mbcdata/@cgpointconstraint/destroy.m

    function obj = destroy(obj)
%DESTROY Destructor function for object
%
%  OBJ = DESTROY(OBJ) is called before optimization items are cleared.
%  Point constraint objects free their cgconstraint pointer as this is not
%  shared with anyone else.

%  Copyright 2005 The MathWorks, Inc. and Ford Global Technologies, Inc.


if isvalid(obj.ConExpression)
    freeptr(obj.ConExpression);
end