add a missing call to g_object_unref