From 9ee42c7226a0571f78dd21319f226b8a48aa7fc0 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 29 Jul 2007 14:40:37 +0000 Subject: Change the report default filename to "hardinfo_report". Fix crash. --- hardinfo2/shell.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'hardinfo2/shell.c') 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) { -- cgit v1.2.3