X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2FbatchAnalysis.c;h=0f169c717603ecadad8152e67381910230b14f0c;hb=ee300ef74b6911e4aa259ba62a3af18c754520cd;hp=72a642c4d5c0803e134c9829dcfedae1f0600cb1;hpb=ffd54a901f0062e31ffb35a316de9d8b17104abb;p=lttv.git diff --git a/ltt/branches/poly/lttv/batchAnalysis.c b/ltt/branches/poly/lttv/batchAnalysis.c index 72a642c4..0f169c71 100644 --- a/ltt/branches/poly/lttv/batchAnalysis.c +++ b/ltt/branches/poly/lttv/batchAnalysis.c @@ -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,12 +120,10 @@ void init(LttvModule *self, int argc, char **argv) } -void destroy() +G_MODULE_EXPORT void destroy() { guint i, nb; - lttv_hooks_remove_data(main_hooks, process_traceset, NULL); - lttv_option_remove("trace"); lttv_hooks_destroy(before_traceset); @@ -136,10 +134,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); }