From 1f101bcb3952ce79440d0236313f3ed11cba2aaa Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 30 Jun 2007 01:31:54 +0000 Subject: Cleanups, fix crashes. --- hardinfo2/arch/linux/common/modules.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'hardinfo2/arch/linux/common/modules.h') diff --git a/hardinfo2/arch/linux/common/modules.h b/hardinfo2/arch/linux/common/modules.h index 9b895ee8..54e77ddb 100644 --- a/hardinfo2/arch/linux/common/modules.h +++ b/hardinfo2/arch/linux/common/modules.h @@ -26,12 +26,7 @@ static gboolean remove_module_devices(gpointer key, gpointer value, gpointer data) { - if (!strncmp((gchar *) key, "MOD", 3)) { - g_free((gchar *) key); - g_free((GtkTreeIter *) value); - return TRUE; - } - return FALSE; + return g_str_has_prefix(key, "MOD"); } static void -- cgit v1.2.3