Consider standardizing on g_auto*
GLib has ways to automatically release resources when the variables containing them go out of scope, more information here:
- https://blogs.gnome.org/desrt/2015/01/30/g_autoptr/
- https://developer.gnome.org/glib/stable/glib-Miscellaneous-Macros.html#g-auto
- https://developer.gnome.org/glib/stable/glib-Miscellaneous-Macros.html#g-autoptr
- https://developer.gnome.org/glib/stable/glib-Miscellaneous-Macros.html#g-autofree
- https://developer.gnome.org/glib/stable/glib-Memory-Allocation.html#g-steal-pointer
What about trying to standardize on these for libhandy, and maybe later Calls and other apps if it works well? They seem to be working greatly for Builder which used them since say one.
Note that I never used these.
Edited by Adrien Plazas