Allow NULL clear function when releasing references
commit7c4ac58938187a431db0651e383dda6e098cff07
authorEmmanuele Bassi <ebassi@gnome.org>
Tue, 3 Jul 2018 14:46:11 +0000 (3 15:46 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Mon, 9 Jul 2018 09:11:42 +0000 (9 10:11 +0100)
tree7b09808219df3b0697a8a9f7920559a43b040208
parent68304ae583b7f633742420a0fa014accc8eec379
Allow NULL clear function when releasing references

Both g_rc_box_release_full() and g_atomic_rc_box_release_full() should
allow passing NULL as the clear function, to conform to the existing
coding practices in GLib.

Additionally, this allows us to reimplement release() in terms of
release_full(), and improve test coverage.
glib/garcbox.c
glib/grcbox.c