aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/temperature/e_mod_main.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-01 09:57:10 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-02-01 09:57:10 +0000
commitabe45b31c1ca503970b87f657397dcc3bce35af6 (patch)
tree877604520dd09d1aa186780c1914d214dd2a7d45 /src/modules/temperature/e_mod_main.c
parentsame xkb typo in another place (diff)
downloadenlightenment-abe45b31c1ca503970b87f657397dcc3bce35af6.tar.gz
fix some hash magic fails in temp module
SVN revision: 83543
Diffstat (limited to 'src/modules/temperature/e_mod_main.c')
-rw-r--r--src/modules/temperature/e_mod_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c
index 6ab678db9..52c69986a 100644
--- a/src/modules/temperature/e_mod_main.c
+++ b/src/modules/temperature/e_mod_main.c
@@ -445,7 +445,7 @@ e_modapi_init(E_Module *m)
temperature_config = e_config_domain_load("module.temperature", conf_edd);
if (!temperature_config)
temperature_config = E_NEW(Config, 1);
- else
+ else if (temperature_config->faces)
eina_hash_foreach(temperature_config->faces, _temperature_face_id_max, &uuid);
temperature_config->module = m;
@@ -457,7 +457,8 @@ EAPI int
e_modapi_shutdown(E_Module *m __UNUSED__)
{
e_gadcon_provider_unregister(&_gadcon_class);
- eina_hash_foreach(temperature_config->faces, _temperature_face_shutdown, NULL);
+ if (temperature_config->faces)
+ eina_hash_foreach(temperature_config->faces, _temperature_face_shutdown, NULL);
eina_hash_free(temperature_config->faces);
free(temperature_config);
temperature_config = NULL;