git-svn-id: http://ltt.polymtl.ca/svn@181 04897980-b3bd-0310-b5e0-8ef037075253
[lttv.git] / ltt / branches / poly / lttv / batchAnalysis.c
index 72a642c4d5c0803e134c9829dcfedae1f0600cb1..83d46f2d22a2a1f46a1c571f3c1dacaeeff61bf2 100644 (file)
@@ -66,7 +66,7 @@ static gboolean process_traceset(void *hook_data, void *call_data)
 }
 
 
-void init(LttvModule *self, int argc, char **argv)
+G_MODULE_EXPORT void init(LttvModule *self, int argc, char **argv)
 {
   LttvAttributeValue value;
 
@@ -120,7 +120,7 @@ void init(LttvModule *self, int argc, char **argv)
 }
 
 
-void destroy()
+G_MODULE_EXPORT void destroy()
 {
   guint i, nb;
 
@@ -136,10 +136,13 @@ void destroy()
   lttv_hooks_destroy(after_tracefile);
   lttv_hooks_destroy(before_event);
   lttv_hooks_destroy(after_event);
+  lttv_hooks_remove_data(main_hooks, process_traceset, NULL);
 
   nb = lttv_traceset_number(traceset);
   for(i = 0 ; i < nb ; i++) {
     ltt_trace_close(lttv_traceset_get(traceset, i));
   }
+
+  lttv_traceset_destroy(traceset); 
 }
 
This page took 0.023223 seconds and 4 git commands to generate.