Q3Object_Dispose
You can use theQ3Object_Disposefunction to dispose of a QuickDraw 3D object.
TQ3Status Q3Object_Dispose (TQ3Object object);
object- A QuickDraw 3D object.
DESCRIPTION
TheQ3Object_Disposefunction disposes of the QuickDraw 3D object specified by theobjectparameter. If the specified object is not a shared object, QuickDraw 3D disposes of any memory occupied by that object. If the specified object is a shared object, QuickDraw 3D reduces by 1 the reference count associated with that object. When the reference count is reduced to 0,Q3Object_Disposedisposes of the memory occupied by the object.In general, you need to call
Q3Object_Disposefor any objects returned by aGetcall (for example,Q3View_GetDrawContext). Failure to callQ3Object_Disposeon such objects will result in a memory leak.ERRORS
kQ3ErrorInvalidObject