forked from enlightenment/efl
eeze_sensor: Don't free the object we want to return asynchronously
The event callback will take care of freeing the object. This issue was found thanks to clangs -fsanitize=address option - coming to a CI job near you. Signed-off-by: Daniel Willmann <d.willmann@samsung.com>
This commit is contained in:
parent
c76440d55e
commit
0bbd944672
|
@ -137,7 +137,6 @@ fake_async_read(Eeze_Sensor_Type sensor_type, void *user_data EINA_UNUSED)
|
||||||
free(obj);
|
free(obj);
|
||||||
return EINA_FALSE;
|
return EINA_FALSE;
|
||||||
}
|
}
|
||||||
free(obj);
|
|
||||||
return EINA_TRUE;
|
return EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue