aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/arch/linux/common
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-04 14:41:24 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-04 14:41:24 +0000
commitb447372e7c120e2336fe0ac910792b04e1688af2 (patch)
tree10eee3afa7476dae3ab244dfdab7daa59b7de30b /hardinfo2/arch/linux/common
parentb2d570a78ba003c7ead6096f37f3348b503db634 (diff)
Fix segfaults, cleanups.
Diffstat (limited to 'hardinfo2/arch/linux/common')
-rw-r--r--hardinfo2/arch/linux/common/devmemory.h2
-rw-r--r--hardinfo2/arch/linux/common/inputdevices.h2
-rw-r--r--hardinfo2/arch/linux/common/usb.h5
3 files changed, 1 insertions, 8 deletions
diff --git a/hardinfo2/arch/linux/common/devmemory.h b/hardinfo2/arch/linux/common/devmemory.h
index c7ffdc08..0adea960 100644
--- a/hardinfo2/arch/linux/common/devmemory.h
+++ b/hardinfo2/arch/linux/common/devmemory.h
@@ -48,7 +48,7 @@ static void __scan_memory()
tmp = g_strconcat(lginterval,
"LoadGraphInterval$", newkeys[0], "=500\n",
- "UpdateInterval$", newkeys[0], "=500\n", NULL);
+ "UpdateInterval$", newkeys[0], "=1000\n", NULL);
g_free(lginterval);
lginterval = tmp;
diff --git a/hardinfo2/arch/linux/common/inputdevices.h b/hardinfo2/arch/linux/common/inputdevices.h
index 0742bb3b..1a5baff8 100644
--- a/hardinfo2/arch/linux/common/inputdevices.h
+++ b/hardinfo2/arch/linux/common/inputdevices.h
@@ -22,8 +22,6 @@ static gboolean
remove_input_devices(gpointer key, gpointer value, gpointer data)
{
if (!strncmp((gchar *) key, "INP", 3)) {
- g_free((gchar *) key);
- g_free((GtkTreeIter *) value);
return TRUE;
}
diff --git a/hardinfo2/arch/linux/common/usb.h b/hardinfo2/arch/linux/common/usb.h
index 606bb0fb..d59f5f01 100644
--- a/hardinfo2/arch/linux/common/usb.h
+++ b/hardinfo2/arch/linux/common/usb.h
@@ -20,11 +20,6 @@ static gboolean
remove_usb_devices(gpointer key, gpointer value, gpointer data)
{
if (!strncmp((gchar *) key, "USB", 3)) {
- GtkTreeIter *iter = (GtkTreeIter *) data;
-
- g_free((gchar *) value);
- g_free(iter);
-
return TRUE;
}
return FALSE;