Remove some unused fields, avoid g_clear_pointer(xxx, g_object_unref) preferring g_clear_object.
g_clear_pointer(xxx, g_object_unref)
g_clear_object