fix filter : add a list to module unloading will work
authorcompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 5 Sep 2005 15:24:29 +0000 (15:24 +0000)
committercompudj <compudj@04897980-b3bd-0310-b5e0-8ef037075253>
Mon, 5 Sep 2005 15:24:29 +0000 (15:24 +0000)
git-svn-id: http://ltt.polymtl.ca/svn@1130 04897980-b3bd-0310-b5e0-8ef037075253

ltt/branches/poly/lttv/modules/gui/filter/filter.c

index 4d95380e9144486381f019f527cb46cbdea847d4..c21239e5eb74852c7c9831853d1f4c153a4035a5 100644 (file)
@@ -35,6 +35,9 @@
 
 #include "hGuiFilterInsert.xpm"
 
+
+GSList *g_filter_list = NULL ;
+
 /*! \file lttv/modules/gui/filter/filter.c
  *  \brief Graphic filter interface.
  *
@@ -278,6 +281,9 @@ gui_filter(Tab *tab)
       fvd,
       (GDestroyNotify)gui_filter_destructor);
 
+  g_filter_list = g_slist_append(
+      g_filter_list,
+      fvd);
   
   return fvd;
 }
@@ -409,7 +415,9 @@ gui_filter_destructor(FilterViewerData *fvd)
 //                                          filter_viewer_data);
 //  }
   lttvwindowtraces_background_notify_remove(fvd);
-
+  
+  g_filter_list = g_slist_remove(g_filter_list, fvd);
+  
   g_free(fvd);
 }
 
@@ -477,6 +485,8 @@ filter_destroy_walk(gpointer data, gpointer user_data)
  *  everything that has been registered in the gtkTraceSet API.
  */
 static void destroy() {
+  g_slist_foreach(g_filter_list, filter_destroy_walk, NULL );
   
   lttvwindow_unregister_constructor(h_guifilter);
   
This page took 0.024394 seconds and 4 git commands to generate.