X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=lttv%2Fmodules%2Fgui%2Fcontrolflow%2Fcfv.c;h=06db4d2d6ef8c0061429aa9d89b1ad8065a6d941;hb=034fd175a92ebe36191141d936395f54d64eb363;hp=603ac6306693c16878716b86eff5e6c087a31ec3;hpb=f61f4dca50e13aa52b1ca3941c8f420848f4353f;p=lttv.git diff --git a/lttv/modules/gui/controlflow/cfv.c b/lttv/modules/gui/controlflow/cfv.c index 603ac630..06db4d2d 100644 --- a/lttv/modules/gui/controlflow/cfv.c +++ b/lttv/modules/gui/controlflow/cfv.c @@ -21,6 +21,7 @@ #endif #include +#include #include #include #include @@ -87,8 +88,6 @@ gboolean cfv_scroll_event(GtkWidget *widget, GdkEventScroll *event, static void property_button (GtkToolButton *toolbutton, gpointer user_data) { - ControlFlowData *control_flow_data = (ControlFlowData*)user_data; - g_printf("CFV Property button clicked\n"); } @@ -349,8 +348,9 @@ guicontrolflow_destructor(gpointer data) g_info("%p, %p, %p", update_time_window_hook, plugin_cfv, tab); if(GTK_IS_WIDGET(guicontrolflow_get_widget(plugin_cfv->cfd))) g_info("widget still exists"); - +#ifdef BABEL_CLEANUP lttv_filter_destroy(plugin_cfv->cfd->filter); +#endif //babel_cleanup /* Process List is removed with it's widget */ //ProcessList_destroy(control_flow_data->process_list); if(tab != NULL) @@ -375,7 +375,9 @@ guicontrolflow_destructor(gpointer data) lttvwindow_events_request_remove_all(control_flow_data->tab, control_flow_data); - + LttvTraceset *traceset = lttvwindow_get_traceset(tab); + LttvHooks *event_hook = lttv_traceset_get_hooks(traceset); + lttv_hooks_remove(event_hook, before_schedchange_hook); } lttvwindowtraces_background_notify_remove(control_flow_data); g_control_flow_data_list =