From 71c946914e692c1d2eda6f0dcdfdc1839789110b Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 3 Jan 2010 20:08:09 -0200 Subject: Add hi_module_deinit() functions to more modules. --- hardinfo2/util.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'hardinfo2/util.c') diff --git a/hardinfo2/util.c b/hardinfo2/util.c index 43a3677e..67277b53 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -593,8 +593,12 @@ static void module_unload(ShellModule * module) if (module->dll) { gchar *name; - if (module->deinit) + if (module->deinit) { + DEBUG("cleaning up module \"%s\"", module->name); module->deinit(); + } else { + DEBUG("module \"%s\" does not need cleanup", module->name); + } name = g_path_get_basename(g_module_name(module->dll)); g_hash_table_foreach_remove(__module_methods, remove_module_methods, name); -- cgit v1.2.3