aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index ad626ffa..3768d1fd 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -603,6 +603,17 @@ static gboolean update_field(gpointer data)
return TRUE;
}
+ if (update_sfusrc) {
+ GSList *sfu;
+
+ for (sfu = update_sfusrc; sfu; sfu = sfu->next) {
+ g_free(sfu->data);
+ }
+
+ g_slist_free(update_sfusrc);
+ update_sfusrc = NULL;
+ }
+
DEBUG("destroying ShellFieldUpdate for field %s", fu->field_name);
/* otherwise, cleanup and destroy the timeout */