X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2Fmodule.c;h=7d47e9d1eee968e0c72aed62a4d3a193bea42438;hb=bca3b81f050faa6295485fc7dbc3fef45f706d14;hp=41b77a6d983d9cd573803b0e4ba1fd9fb915b522;hpb=1ab818de1d890bf716413090d943858bfef8d3d3;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c index 41b77a6d..7d47e9d1 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/module.c +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/module.c @@ -68,7 +68,7 @@ G_MODULE_EXPORT void init(LttvModule *self, int argc, char *argv[]) { void destroy_walk(gpointer data, gpointer user_data) { - GuiControlFlow_Destructor((ControlFlowData*)data); + GuiControlFlow_Destructor_Full((ControlFlowData*)data); g_critical("Walk destroy GUI Control Flow Viewer"); } @@ -84,10 +84,10 @@ G_MODULE_EXPORT void destroy() { g_critical("GUI Control Flow Viewer destroy()"); int i; - ControlFlowData *Control_Flow_Data; - g_slist_foreach(gControl_Flow_Data_List, destroy_walk, NULL ); + g_slist_free(gControl_Flow_Data_List); + /* Unregister the toolbar insert button */ ToolbarItemUnreg(hGuiControlFlow);