* BT_NOTIFICATION_TYPE_STREAM_BEGIN
* notification: skip this one, get a new one.
*/
- BT_PUT(*notif);
+ BT_OBJECT_PUT_REF_AND_RESET(*notif);
status = ctf_fs_ds_file_next(notif_iter_data->ds_file,
notif);
BT_ASSERT(status != BT_NOTIFICATION_ITERATOR_STATUS_END);
goto end;
}
- BT_PUT(*notif);
+ BT_OBJECT_PUT_REF_AND_RESET(*notif);
bt_notif_iter_reset(notif_iter_data->notif_iter);
/*
if (status == BT_NOTIFICATION_ITERATOR_STATUS_OK) {
BT_ASSERT(bt_notification_get_type(*notif) ==
BT_NOTIFICATION_TYPE_STREAM_BEGIN);
- BT_PUT(*notif);
+ BT_OBJECT_PUT_REF_AND_RESET(*notif);
status = ctf_fs_ds_file_next(notif_iter_data->ds_file,
notif);
BT_ASSERT(status != BT_NOTIFICATION_ITERATOR_STATUS_END);
g_ptr_array_free(ds_file_group->ds_file_infos, TRUE);
}
- bt_put(ds_file_group->stream);
- bt_put(ds_file_group->stream_class);
+ bt_object_put_ref(ds_file_group->stream);
+ bt_object_put_ref(ds_file_group->stream_class);
g_free(ds_file_group);
}
ds_file_group->stream_id = stream_instance_id;
BT_ASSERT(stream_class);
- ds_file_group->stream_class = bt_get(stream_class);
+ ds_file_group->stream_class = bt_object_get_ref(stream_class);
ds_file_group->ctf_fs_trace = ctf_fs_trace;
goto end;