Important: The information in this document is obsolete and should not be used for new development.
SRReleaseObject
You can use theSRReleaseObject
function to release a speech object.
pascal OSErr SRReleaseObject (SRSpeechObject srObject);
srObject
- A speech object.
DESCRIPTION
TheSRReleaseObject
function releases the object reference specified by thesrObject
parameter. If there are no other remaining references to that object,SRReleaseObject
disposes 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 withSRNew
orSRGet
that successfully returns an object reference must be balanced with a call toSRReleaseObject
.In addition, you should call
SRReleaseObject
to release references toSRSearchResult
objects 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.