Important: The information in this document is obsolete and should not be used for new development.
SRReleaseObject
You can use theSRReleaseObjectfunction to release a speech object.
pascal OSErr SRReleaseObject (SRSpeechObject srObject);
srObject- A speech object.
DESCRIPTION
TheSRReleaseObjectfunction releases the object reference specified by thesrObjectparameter. If there are no other remaining references to that object,SRReleaseObjectdisposes of the memory occupied by the object.SPECIAL CONSIDERATIONS
Your application should balance every function call that returns an object reference with a call toSRReleaseObject. This means that every call to a function whose name begins withSRNeworSRGetthat successfully returns an object reference must be balanced with a call toSRReleaseObject.In addition, you should call
SRReleaseObjectto release references toSRSearchResultobjects that are passed to your application (via an Apple event handler or a callback routine).SEE ALSO
For more information on creating and releasing object references, see "Object References" on page 1-8.