registerAutoReleaseObject method
Registers an object for auto release.
When the object is not used anymore, it will be released automatically from C++.
Implementation
void registerAutoReleaseObject(final int pointerId) {
_gemObject = GemKitPlatform.instance.registerWeakRelease(
this,
pointerId,
_timestamp,
);
}