aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2010-01-03 20:08:09 -0200
committerLeandro Pereira <leandro@hardinfo.org>2010-01-03 20:08:09 -0200
commit71c946914e692c1d2eda6f0dcdfdc1839789110b (patch)
tree079be72e50061f879a72fd062535d0db7b0387b7 /hardinfo2/util.c
parent631f3ba3ffadaddd79cbbfc8c49b92aca58c2138 (diff)
Add hi_module_deinit() functions to more modules.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c6
1 files changed, 5 insertions, 1 deletions
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);