glib: Pass the pointer, because obj's pointer might become invalid at some time