From b2c6231f5c707234772660a515e0daf19c710510 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 10 May 2009 11:13:44 -0300 Subject: Implement SSH tunnel; needs more work, though. --- 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 f9dbd232..3a1409d2 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -594,7 +594,10 @@ static void module_unload(ShellModule * module) name = g_path_get_basename(g_module_name(module->dll)); g_hash_table_foreach_remove(__module_methods, remove_module_methods, name); - g_module_close(module->dll); + if (module->dll) { + g_module_close(module->dll); + } + g_free(module->name); gdk_pixbuf_unref(module->icon); @@ -633,6 +636,7 @@ void module_unload_all(void) g_slist_free(shell->tree->modules); g_slist_free(shell->merge_ids); + shell->merge_ids = NULL; shell->tree->modules = NULL; shell->selected = NULL; -- cgit v1.2.3