Resource.gResourceUnref

Atomically decrements the reference count of resource by one. If the reference count drops to 0, all memory allocated by the array is released. This function is MT-safe and may be called from any thread. Since 2.32

class Resource
void
gResourceUnref
()

Meta