-
-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->TracesetContext != NULL){
- lttv_context_fini(LTTV_TRACESET_CONTEXT(mw->Traceset_Info->TracesetContext));
- g_object_unref(mw->Traceset_Info->TracesetContext);
- }
- 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);
-
- g_object_unref(mw->Attributes);
-
- g_free(mw->Traceset_Info);
- mw->Traceset_Info = NULL;
-