aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-07 17:54:10 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-01-07 17:54:10 +0000
commitf11c77e39f595fda18aaa7035ee6e1f032cc6039 (patch)
tree34e32cea6d25f52279777ed7813cdc9726957e46 /hardinfo2/shell.c
parentdef14b5309427469d4c5fadc720a308ee0ec4b6a (diff)
Optimizations, add module description to ModuleAbout
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c14
1 files changed, 5 insertions, 9 deletions
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);