forked from enlightenment/enlightenment
parent
7d5b20f5b2
commit
d4a41079f7
|
@ -1006,9 +1006,7 @@ e_app_dir_file_list_get(E_App *a)
|
||||||
while ((file = ecore_list_next(files)))
|
while ((file = ecore_list_next(files)))
|
||||||
{
|
{
|
||||||
if (file[0] != '.')
|
if (file[0] != '.')
|
||||||
ecore_list_append(files2, file);
|
ecore_list_append(files2, strdup(file));
|
||||||
else
|
|
||||||
free(file);
|
|
||||||
}
|
}
|
||||||
ecore_list_destroy(files);
|
ecore_list_destroy(files);
|
||||||
}
|
}
|
||||||
|
|
|
@ -987,7 +987,7 @@ _temperature_cb_check(void *data)
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
therms = ecore_file_ls("/proc/acpi/thermal_zone");
|
therms = ecore_file_ls("/proc/acpi/thermal_zone");
|
||||||
if (!therms || ecore_list_is_empty(therms))
|
if ((!therms) || ecore_list_is_empty(therms))
|
||||||
{
|
{
|
||||||
FILE *f;
|
FILE *f;
|
||||||
|
|
||||||
|
@ -1001,6 +1001,7 @@ _temperature_cb_check(void *data)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (therms) ecore_list_destroy(therms);
|
||||||
therms = ecore_file_ls("/sys/bus/i2c/devices");
|
therms = ecore_file_ls("/sys/bus/i2c/devices");
|
||||||
if ((therms) && (!ecore_list_is_empty(therms)))
|
if ((therms) && (!ecore_list_is_empty(therms)))
|
||||||
{
|
{
|
||||||
|
@ -1034,6 +1035,7 @@ _temperature_cb_check(void *data)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
ecore_list_destroy(therms);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1056,10 +1058,9 @@ _temperature_cb_check(void *data)
|
||||||
ret = 1;
|
ret = 1;
|
||||||
fclose(f);
|
fclose(f);
|
||||||
}
|
}
|
||||||
free(name);
|
|
||||||
}
|
}
|
||||||
|
ecore_list_destroy(therms);
|
||||||
}
|
}
|
||||||
if (therms) ecore_list_destroy(therms);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (ef->conf->units == FAHRENHEIT)
|
if (ef->conf->units == FAHRENHEIT)
|
||||||
|
|
Loading…
Reference in New Issue