Carbon


SRReleaseObject

Header: SpeechRecognition.h Carbon status: Supported

Releases a speech object.

OSErr SRReleaseObject (
    SRSpeechObject srObject
);
Parameter descriptions
srObject

A speech object.

function result

A result code.

DISCUSSION

If there are no other remaining references to the object, SRReleaseObject disposes of the memory occupied by the object.

Your application should balance every function call that returns an object reference with a call to SRReleaseObject. This means that every call to a function whose name begins with SRNew or SRGet that successfully returns an object reference must be balanced with a call to SRReleaseObject.

In addition, you should call SRReleaseObject to release references to SRSearchResult objects that are passed to your application (via an Apple event handler or a callback routine).

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/10/2000)