From f11c77e39f595fda18aaa7035ee6e1f032cc6039 Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sun, 7 Jan 2007 17:54:10 +0000 Subject: Optimizations, add module description to ModuleAbout --- hardinfo2/shell.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'hardinfo2/shell.c') diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c index 2b5e7f3e..ad626ffa 100644 --- a/hardinfo2/shell.c +++ b/hardinfo2/shell.c @@ -1011,15 +1011,11 @@ module_selected_show_info(ShellModuleEntry * entry, gboolean reload) for (sfusrc = update_sfusrc; sfusrc; sfusrc = sfusrc->next) { ShellFieldUpdateSource *src = (ShellFieldUpdateSource *)sfusrc->data; - GSource *source; - - source = g_main_context_find_source_by_id(NULL, src->source_id); - if (source) { - g_free(src->sfu->field_name); - g_free(src->sfu); - g_free(src); - g_source_destroy(source); - } + + g_source_remove(src->source_id); + g_free(src->sfu->field_name); + g_free(src->sfu); + g_free(src); } g_slist_free(update_sfusrc); -- cgit v1.2.3