[PATCH 0/2] lib: Use g_clear_pointer() more