GLib 2.58 introduced new API to facilitate the implementation of reference counted types; as many C developers have had to deal with this kind of code at one point or another, it's a good thing to provide some insight and best practices on how to do it properly