switch from gfree to g_object_unref