free
⚠️ Deprecated ⚠️
This is deprecated since version 2.32.
Use a #GRWLock instead
---Releases all resources allocated to @lock.
You don't have to call this functions for a #GStaticRWLock with an unbounded lifetime, i.e. objects declared 'static', but if you have a #GStaticRWLock as a member of a structure, and the structure is freed, you should also free the #GStaticRWLock.