Release
The Release method provides manual control over the reference count of the underlying lynx_extension_module_t C-API object. This is an advanced feature that should be used with caution.
In most scenarios, the Lynx framework manages the lifecycle and memory of the extension module automatically. You typically do not need to call these methods.
Release()
Decrements the reference count of the C-API object. When the reference count drops to zero, the object will be destroyed, and its memory will be freed.
Method Signature
Usage
These methods are useful in specific interoperability scenarios where you need to pass ownership of the module to another system or manage its lifecycle outside the standard Lynx flow. For example, if you store a raw pointer to the module in a separate, long-lived object, you should Retain it to ensure it remains valid and Release it when you are done.
Example
Warning
Incorrectly managing the reference count can lead to memory leaks (if Release is not called enough) or crashes due to use-after-free errors (if Release is called too many times). Use these methods only if you have a clear understanding of the object ownership requirements.
Compatibility
LCD tables only load in the browser