ctf_fs = bt_component_get_private_data(component);
assert(ctf_fs);
- ret = ctf_fs_data_stream_get_next_notification(ctf_fs, ¬ification);
+ ret = ctf_fs_data_stream_get_next_notification(ctf_fs, ¬ification, 0);
if (ret || !notification) {
goto end;
}
ctf_fs_metadata_fini(&component->metadata);
BT_PUT(component->current_notification);
- g_ptr_array_free(component->streams, TRUE);
+ if (component->streams) {
+ g_ptr_array_free(component->streams, TRUE);
+ }
g_free(component);
}