diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-05-10 11:13:44 -0300 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2009-05-10 11:13:44 -0300 |
commit | b2c6231f5c707234772660a515e0daf19c710510 (patch) | |
tree | 5a49e3e6b8d4e86f07c6127c2b5532e9cda9d08d /hardinfo2/util.c | |
parent | fe6af8f1e913bb6ad147f1ed5178d69c5e74325c (diff) |
Implement SSH tunnel; needs more work, though.
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 6 |
1 files changed, 5 insertions, 1 deletions
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; |