From: pmf Date: Fri, 12 Oct 2007 15:40:22 +0000 (+0000) Subject: lttvwindow: make it work again X-Git-Tag: v0.12.20~819 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9d333d80fe55f83ddb64b0d0dae109e8d170e8af;p=lttv.git lttvwindow: make it work again git-svn-id: http://ltt.polymtl.ca/svn@2670 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c index 0340caf9..4f77d883 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c @@ -1110,9 +1110,7 @@ void events_request_free(EventsRequest *events_request) if(events_request->hooks != NULL) { guint i; GArray *hooks = events_request->hooks; - for(i=0;ilen;i++) { - lttv_trace_hook_destroy(&g_array_index(hooks, LttvTraceHook, i)); - } + lttv_trace_hook_remove_all(hooks); g_array_free(events_request->hooks, TRUE); } if(events_request->before_chunk_traceset != NULL)