Defined in:Releases a resource object.
Releasefunction releases a resource object that was previously created with the
Releasefunction should be called to balance every call to the
GetResourcefunction that does not return
The return value is the new reference count for the resource object after is has been released.