From 9d333d80fe55f83ddb64b0d0dae109e8d170e8af Mon Sep 17 00:00:00 2001 From: pmf Date: Fri, 12 Oct 2007 15:40:22 +0000 Subject: [PATCH] lttvwindow: make it work again git-svn-id: http://ltt.polymtl.ca/svn@2670 04897980-b3bd-0310-b5e0-8ef037075253 --- .../poly/lttv/modules/gui/lttvwindow/lttvwindow/lttvwindow.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.34.1