From: compudj Date: Wed, 28 Jul 2004 22:10:44 +0000 (+0000) Subject: fix module unload oops X-Git-Tag: v0.12.20~2845 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6d677a86a688c9b468d934496323e6ea43fc0a01;p=lttv.git fix module unload oops git-svn-id: http://ltt.polymtl.ca/svn@644 04897980-b3bd-0310-b5e0-8ef037075253 --- diff --git a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c index 53fb93c2..e7e24c38 100644 --- a/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c +++ b/ltt/branches/poly/lttv/modules/gui/lttvwindow/lttvwindow/callbacks.c @@ -2721,9 +2721,9 @@ on_unload_module_activate (GtkMenuItem *menuitem, GPtrArray *name; guint nb,i; gchar *module_name; + nb = lttv_library_module_number(library); LttvModuleInfo *module_info = g_new(LttvModuleInfo,nb); name = g_ptr_array_new(); - nb = lttv_library_module_number(library); /* ask for the module name */ for(i=0;i