gobj_destroy()#
The gobj_destroy() function deallocates and removes a given hgobj instance, ensuring proper cleanup of its resources, subscriptions, and child objects.
Prototype
void gobj_destroy(
hgobj gobj
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
A handle to the |
Return Value
This function does not return a value.
Notes
[‘If the hgobj instance is currently playing, it will be paused before destruction.’, ‘If the hgobj instance is running, it will be stopped before destruction.’, ‘All child objects of the hgobj instance will be recursively destroyed.’, ‘All event subscriptions related to the hgobj instance will be removed.’, ‘If the hgobj instance is a registered service, it will be deregistered before destruction.’]
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples