-
-g_critical("begin remove");
- lttv_hooks_destroy(mw->traceset_info->before_traceset);
- lttv_hooks_destroy(mw->traceset_info->after_traceset);
- lttv_hooks_destroy(mw->traceset_info->before_trace);
- lttv_hooks_destroy(mw->traceset_info->after_trace);
- lttv_hooks_destroy(mw->traceset_info->before_tracefile);
- lttv_hooks_destroy(mw->traceset_info->after_tracefile);
- lttv_hooks_destroy(mw->traceset_info->before_event);
- lttv_hooks_destroy(mw->traceset_info->after_event);
-g_critical("end remove");
-
- if(mw->traceset_info->path != NULL)
- g_free(mw->traceset_info->path);
- if(mw->traceset_info->traceset_context != NULL){
- lttv_context_fini(LTTV_TRACESET_CONTEXT(mw->traceset_info->traceset_context));
- g_object_unref(mw->traceset_info->traceset_context);
- }
- if(mw->traceset_info->traceset != NULL) {
- nb = lttv_traceset_number(mw->traceset_info->traceset);
- for(i = 0 ; i < nb ; i++) {
- trace = lttv_traceset_get(mw->traceset_info->traceset, i);
- ref_count = lttv_trace_get_ref_number(trace);
- if(ref_count <= 1)
- ltt_trace_close(lttv_trace(trace));
- }
- }
-
- lttv_traceset_destroy(mw->traceset_info->traceset);
-