cogl/object: add cogl_clear_object utility function
This is based on g_clear_object
, so it will be a bit more consistent
to write (and prevents the headaches from accidentally forgetting a NULL
check).
This is based on g_clear_object
, so it will be a bit more consistent
to write (and prevents the headaches from accidentally forgetting a NULL
check).