forked from enlightenment/enlightenment
Enlightenment - Sysinfo Gadget - Add some safety fallbacks for thermal - Fixes a dnd crash.
This commit is contained in:
parent
d99e88b78c
commit
d55164d0e0
|
@ -5,6 +5,8 @@ _thermal_thread_free(Tempthread *tth)
|
||||||
{
|
{
|
||||||
const char *s;
|
const char *s;
|
||||||
|
|
||||||
|
if (!tth) return;
|
||||||
|
|
||||||
eina_stringshare_del(tth->sensor_name);
|
eina_stringshare_del(tth->sensor_name);
|
||||||
eina_stringshare_del(tth->sensor_path);
|
eina_stringshare_del(tth->sensor_path);
|
||||||
#ifdef HAVE_EEZE
|
#ifdef HAVE_EEZE
|
||||||
|
@ -176,7 +178,7 @@ _thermal_face_shutdown(Instance *inst)
|
||||||
#ifdef HAVE_EEZE
|
#ifdef HAVE_EEZE
|
||||||
if (inst->cfg->thermal.poller)
|
if (inst->cfg->thermal.poller)
|
||||||
{
|
{
|
||||||
ecore_poller_del(inst->cfg->thermal.poller);
|
E_FREE_FUNC(inst->cfg->thermal.poller, ecore_poller_del);
|
||||||
_thermal_thread_free(inst->cfg->thermal.tth);
|
_thermal_thread_free(inst->cfg->thermal.tth);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue