state update hooks are added by the main window
[lttv.git] / ltt / branches / poly / lttv / modules / gui / mainWin / src / init_module.c
index 1fe80b546f9525cdd467a441cceeaf7da76a2c14..2201eadc1f6d5167055fab578fdebcb5a2d4783b 100644 (file)
@@ -24,6 +24,8 @@
 #include "support.h"
 #include <lttv/mainWindow.h>
 #include "callbacks.h"
+#include <ltt/trace.h>
+
 
 /* global variable */
 static WindowCreationData  win_creation_data;
@@ -111,6 +113,11 @@ void
 main_window_free(MainWindow * mw)
 { 
   if(mw){
+    while(mw->tab){
+      lttv_state_remove_event_hooks(
+           (LttvTracesetState*)mw->tab->traceset_info->traceset_context);
+      mw->tab = mw->tab->next;
+    }
     g_object_unref(mw->attributes);
     g_main_window_list = g_slist_remove(g_main_window_list, mw);
 
This page took 0.023079 seconds and 4 git commands to generate.