diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-29 14:40:37 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2007-07-29 14:40:37 +0000 |
commit | 9ee42c7226a0571f78dd21319f226b8a48aa7fc0 (patch) | |
tree | 5a4709a5354d73c9397a9008712026664ce1f67d /hardinfo2/shell.c | |
parent | 422425593df585b879ca45b19849da48be463fe5 (diff) |
Change the report default filename to "hardinfo_report".
Fix crash.
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r-- | hardinfo2/shell.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 820a505b..fce29d8b 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1017,13 +1017,11 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) /* recreate the iter hash table */ if (!reload) { if (update_tbl) { - g_hash_table_foreach_remove(update_tbl, (GHRFunc) gtk_true, - NULL); - } else { - update_tbl = - g_hash_table_new_full(g_str_hash, g_str_equal, g_free, - g_free); - } + g_hash_table_destroy(update_tbl); + } + + update_tbl = g_hash_table_new_full(g_str_hash, g_str_equal, + g_free, g_free); } if (update_sfusrc) { |