From 0fcd8c7725a83216b49442a3ca574e44dca2bc26 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Sat, 8 Oct 2005 15:06:36 +0000 Subject: [PATCH] leak -- SVN revision: 17327 --- src/bin/e_config.c | 2 +- src/modules/temperature/e_mod_main.c | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/bin/e_config.c b/src/bin/e_config.c index ff9c456..d517621 100644 --- a/src/bin/e_config.c +++ b/src/bin/e_config.c @@ -1353,7 +1353,7 @@ e_config_init(void) } e_config_save_queue(); } -// e_config->evas_engine_default = E_EVAS_ENGINE_XRENDER_X11; + e_config->evas_engine_default = E_EVAS_ENGINE_XRENDER_X11; // e_config->evas_engine_container = E_EVAS_ENGINE_GL_X11; // TESTING OPTIONS diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c index 96decb8..90793fb 100644 --- a/src/modules/temperature/e_mod_main.c +++ b/src/modules/temperature/e_mod_main.c @@ -736,14 +736,17 @@ _temperature_config_menu_new(Temperature *e) { FILE *f; - if (therms) ecore_list_destroy(therms); + if (therms) + { + ecore_list_destroy(therms); + therms = NULL; + } f = fopen("/sys/devices/temperatures/cpu_temperature", "rb"); if (f) fclose(f); if (!f) { - therms = ecore_file_ls("/sys/bus/i2c/devices"); if (therms) { @@ -781,9 +784,11 @@ _temperature_config_menu_new(Temperature *e) e->config_menu_sensor = mn; } ecore_list_destroy(therms); + therms = NULL; } } } + if (therms) ecore_list_destroy(therms); #endif /* Main */ -- 2.7.4